← Back to index
|
Original Bugzilla link
Bug 11742 – cannot inizialize void initialized static variable in static constructor.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-14T11:05:37Z
Last change time
2018-04-23T06:15:55Z
Assigned to
No Owner
Creator
Kenji Hara
Comments
Comment #0
by k.hara.pg — 2013-12-14T11:05:37Z
Test case: module a; const int x = void; static this() { x = 10; } // NG!
Comment #1
by razvan.nitu1305 — 2018-04-20T09:29:23Z
PR :
https://github.com/dlang/dmd/pull/8198
Comment #2
by github-bugzilla — 2018-04-23T06:15:54Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/ad925fca3db6dbbe5c57e6d0392103115d119b07
Fix Issue 11742 - cannot inizialize void initialized static variable in static constructor.
https://github.com/dlang/dmd/commit/991d367108c39ec0ebd3f78d22addae0e9f6b1e1
Merge pull request #8198 from RazvanN7/Issue_11742 Fix Issue 11742 - cannot inizialize void initialized static variable in static constructor merged-on-behalf-of: Jacob Carlborg <
[email protected]
>