[Issue 22570] New: more arguments than fields allowed in struct constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 5 03:37:21 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22570
Issue ID: 22570
Summary: more arguments than fields allowed in struct
constructor
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: b2.temp at gmx.com
## test case
```
struct S
{
Object o1;
}
void main() @safe
{
S[] s;
s = [S(null, null)];
s ~= S(null, null);
}
```
## notes
Regression from 2.087 according to run.dlang.io
--
More information about the Digitalmars-d-bugs
mailing list