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



--- Comment #4 from Kenji Hara <k.hara...@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: -------

Reply via email to