digitalmars.D.bugs - [Issue 15428] New: __traits(compiles, super()) cause error "multiple
- via Digitalmars-d-bugs (26/26) Dec 09 2015 https://issues.dlang.org/show_bug.cgi?id=15428
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 puremagic.com Reporter: ketmar 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. --
Dec 09 2015