[Issue 7554] Immutable function pointer arguments too
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 27 17:10:25 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7554
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2012-02-27 17:10:21 PST ---
OK. Reduced test case.
int sqr(int x) pure {
return x * x;
}
void main()
{
immutable(int function(int) pure) ifp = &sqr;
// Error: cannot implicitly convert expression (& sqr) of type int
function(int x) pure to immutable(int function(int) pure)
}
--
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