[Issue 52] ambiguous function pointer silently accepted
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 7 01:12:17 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=52
------- Comment #6 from gide at nwawudu.com 2009-04-07 03:12 -------
The example below does not compile. Has this been fixed?
DMD v1.041
bug52.d(11): Error: expected 1 arguments, not 0
bug52.d(26): Error: expected 0 arguments, not 1
DMD v2.027
bug52.d(11): Error: expected 1 function arguments, not 0
bug52.d(20): Error: cannot infer type from overloaded function symbol & fn
bug52.d(26): Error: expected 0 arguments, not 1 for non-variadic function type
int()
--
More information about the Digitalmars-d-bugs
mailing list