http://d.puremagic.com/issues/show_bug.cgi?id=6963
Summary: pure/nothrow inference doesn't work for function pointers Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don <clugd...@yahoo.com.au> 2011-11-16 20:30:27 PST --- void foo(X)(X x) {} immutable void function(int) pure bar = &foo!(int); test.d(7): Error: cannot implicitly convert expression (& foo) of type void fun ction(int x) to immutable(void function(int) pure) Incidentally, this code: immutable nothrow pure bar = &foo!(int); compiles without error, but bar isn't pure nothrow! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------