digitalmars.D.bugs - [Issue 8534] New: mixed-in struct definition not forward referenceable
- d-bugmail puremagic.com (35/35) Aug 10 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8534
http://d.puremagic.com/issues/show_bug.cgi?id=8534 Summary: mixed-in struct definition not forward referenceable Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: dmitry.olsh gmail.com --- Comment #0 from Dmitry Olshansky <dmitry.olsh gmail.com> 2012-08-10 13:25:59 PDT --- Test case: SimpleCaseEntry[] simpleTable; mixin(mixedCCEntry); enum mixedCCEntry = q{ struct SimpleCaseEntry { } }; dmd 2.060 outputs: forward.d(2): Error: undefined identifier SimpleCaseEntry Instead it should just work like this version(this is a workaround): //case folding mapping mixin(mixedCCEntry); SimpleCaseEntry[] simpleTable; enum mixedCCEntry = q{ struct SimpleCaseEntry { } }; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 10 2012