Comment #0 by bearophile_hugs — 2013-11-24T06:07:03Z
I think all the following forms should be accepted:
void main() {
auto i1 = int.init; // OK
auto s1 = string.init; // OK
auto a1 = int[].init; // Error
auto a2 = (int[]).init; // OK
auto aa1 = int[int].init; // Error
auto aa2 = (int[int]).init; // OK
}
See also Issue 6408
Comment #1 by robert.schadek — 2024-12-13T18:14:17Z