[Issue 11742] New: cannot inizialize void initialized static variable in static constructor.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 14 11:05:39 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11742

           Summary: cannot inizialize void initialized static variable in
                    static constructor.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-12-14 11:05:37 PST ---
Test case:

module a;
const int x = void;
static this() { x = 10; }  // NG!

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list