[Issue 12587] New: Ommiting type when auto declaration in static members results in error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 16 02:10:34 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12587
Issue ID: 12587
Summary: Ommiting type when auto declaration in static members
results in error
Product: D
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: temtaime at gmail.com
struct S {
this(int) { }
static immutable s = S(12);
}
void main() {
}
Error: cannot create a struct until its size is determined
If static immutable s = S(12) changed to static immutable S s = S(12) compiles
ok.
--
More information about the Digitalmars-d-bugs
mailing list