http://d.puremagic.com/issues/show_bug.cgi?id=7510
Summary: implicit conversion to immutable fails for pure delegates and function pointers Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: timon.g...@gmx.ch --- Comment #0 from timon.g...@gmx.ch 2012-02-15 10:41:38 PST --- DMD 2.058: void main(){ auto foo()pure{return new int[100];} immutable int[] x = foo(); // ok immutable int[] y = {return new int[100];}(); // ng immutable int[] z = delegate{return new int[100];}(); // ng } The code should compile. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------