[Issue 10186] New: default construction is disabled even if default ctor declared
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 27 14:13:56 PDT 2013
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: nobody at puremagic.com
ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 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: -------
More information about the Digitalmars-d-bugs
mailing list