[Issue 7198] Delegate literals with nameless arguments fail to infer a type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 2 05:36:00 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7198



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-02 05:35:59 PST ---
> I guess the trouble is that the delegate argument "Widget" is interpreted as a
parameter name, not the type. Using "int" instead of "Widget" compiles.

Yes, you're right.
And that is inevitable side-effect of parameter type inference.

Walter answered about the decision in
https://github.com/D-Programming-Language/dmd/pull/588 .

So this issue should be marked as 'resolved-invalid' or 'resolved-wontfix',
IMO.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list