[Issue 10767] Regression (2.057): Type inference does not work with a function with a UDT parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 6 17:05:35 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10767
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-06 17:05:34 PDT ---
(In reply to comment #0)
> -----
> struct S { }
>
> void test(F)(F f) { }
>
> void main()
> {
> test( (int) { } );
> test( (S) { } ); // L10
> }
> -----
The fix for this is incredible:
void main()
{
test( (S s) { } ); // works
test( (S) { } ); // fails
}
What's going on in the front-end?
--
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