[Issue 15428] New: __traits(compiles, super()) cause error "multiple constructor calls" later
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Dec 9 00:33:34 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15428
Issue ID: 15428
Summary: __traits(compiles, super()) cause error "multiple
constructor calls" later
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ketmar at ketmar.no-ip.org
compiling the following code produces "multiple constructor calls" error:
class A {
this () {}
}
class B : A {
this () {
static if (__traits(compiles, super())) super();
}
}
`compiles` trait should not either set or check `parent constructor called`
flag.
--
More information about the Digitalmars-d-bugs
mailing list