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 #1 by k.hara.pg — 2013-04-19T02:18:07Z
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
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5d7ccff11d5bc91824bda7b66edca6318742f80b fix Issue 9961 - Using UFCS properties suppress actual errors https://github.com/D-Programming-Language/dmd/commit/dec31f42148fe14a24250592ee21e376ac1d8a88 Merge pull request #1911 from 9rnsr/fix_ufcs_err Issue 9961 - Using UFCS properties suppress actual errors