digitalmars.D.bugs - [Issue 7510] New: implicit conversion to immutable fails for pure delegates and function pointers
- d-bugmail puremagic.com (25/25) Feb 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7510
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: nobody puremagic.com ReportedBy: timon.gehr gmx.ch --- Comment #0 from timon.gehr 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: -------
Feb 15 2012