[Issue 8226] New: Global lambda assign to const/immutable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 11 14:00:50 PDT 2012
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list