[Issue 8836] function called with argument types ((void function())) matches both f(void function() fn) and f(void delegate() dg)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 19 06:49:33 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8836
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-10-19 06:49:29 PDT ---
Reduced test case:
int f(void function () fn) { return 1; }
int f(void delegate () dg) { return 2; }
void foo() {} // unsafe, impure, and may throw
void main()
{
f({ foo(); });
}
--
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