September 12 [Issue 24763] New: Can't initialize a struct with a static array | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24763 Issue ID: 24763 Summary: Can't initialize a struct with a static array Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: blocker Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: ryuukk.dev@gmail.com ```D struct Test { int test; } struct Data { Test[8] test; } void add(Data data) { } extern(C) void main() { add( Data(test: [ {test: 1}] ) ); } ``` This doesn't compile, it should -- |
Copyright © 1999-2021 by the D Language Foundation