http://d.puremagic.com/issues/show_bug.cgi?id=10186
Summary: default construction is disabled even if default ctor
declared
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Henning Pohl <[email protected]> 2013-05-27 14:13:55
PDT ---
struct S {
@disable this();
this(int i) {
}
}
class C {
this() {
s = S(1);
}
S s;
}
void main() {
auto c = new C;
}
-----
main.d(17): Error: default construction is disabled for type C
-----
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------