[Issue 17341] Partial initialization of static array should not be allowed
https://issues.dlang.org/show_bug.cgi?id=17341 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #2 from b2.t...@gmx.com --- feature that can be an issue. feel free to change "wontfix" to "invalid". --
[Issue 17341] Partial initialization of static array should not be allowed
https://issues.dlang.org/show_bug.cgi?id=17341 --- Comment #1 from b2.t...@gmx.com --- (In reply to b2.temp from comment #0) > In this example: > > ``` > enum E{e0,e1,e2} > static immutable int[E.max + 1] a = [0,1]; // oops no 3rd element > static assert(isStaticArray!(typeof(a))); // no detected > ``` The static assert should be static assert(a.length == E.max + 1); // not detected --