Bug 9961 – Using UFCS properties suppress actual errors
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-19T01:19:00Z
Last change time
2013-04-23T02:18:45Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2013-04-19T01:19:08Z
The second use of foo must also print actual errors during instantiation.
void foo(T)(T) { int x = ""; }
void main()
{
100.foo();
// test.d(1): Error: cannot implicitly convert expression ("") of type string to int
// test.d(4): Error: template instance test.foo!(int) error instantiating
'a'.foo;
// test.d(8): Error: no property 'foo' for type 'char'
}
Comment #2 by andrej.mitrovich — 2013-04-19T02:58:57Z
This is relevant to Issue 9241 and Issue 8894.
Comment #3 by k.hara.pg — 2013-04-19T03:38:46Z
(In reply to comment #2)
> This is relevant to Issue 9241 and Issue 8894.
Yes, those are directly related. I added test case for issue 9241 in the pull request.
Comment #4 by github-bugzilla — 2013-04-22T23:55:44Z