https://issues.dlang.org/show_bug.cgi?id=23260
Issue ID: 23260
Summary: If constructors have a function body, they should
infer attributes
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
struct S { int a; this(int a) { } }
@safe test()
{
S s = S(1); // ctor attribute inference will let this compile
}
--
