www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11742] New: cannot inizialize void initialized static variable in static constructor.

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 puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg 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: -------
Dec 14 2013