[Issue 17341] Partial initialization of static array should not be allowed

2017-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17341 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 17341] Partial initialization of static array should not be allowed

2017-04-22 Thread via Digitalmars-d-bugs
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