blob: e937a480b45c1de4c96a892d7dd40850a0d33e98 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=22570
/*
TEST_OUTPUT:
---
fail_compilation/fail22570.d(19): Error: too many initializers for `S` with 1 field
fail_compilation/fail22570.d(20): Error: too many initializers for `S` with 1 field
---
*/
struct S
{
Object o1;
}
void main() @safe
{
S[] s;
s = [S(null, null)];
s ~= S(null, null);
}