http://d.puremagic.com/issues/show_bug.cgi?id=8226
Summary: Global lambda assign to const/immutable Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-06-11 14:02:59 PDT --- immutable f = (int x) => x; void main() {} DMD 2.060alpha gives: test.d(1): Error: non-constant nested delegate literal expression __lambda1 (According to nazriel on IRC #D, dmd 2.059 gives an internal error backend/elfobj.c 455, and LDC compiles it). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------