You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
bearophile_hugs reported this on 2013-11-24T06:07:03Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=11593
Description
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 6408The text was updated successfully, but these errors were encountered: