[Issue 18886] New: Explicitly invoking super.__ctor in a constructor does not count as calling a super constructor
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun May 20 17:20:39 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=18886
          Issue ID: 18886
           Summary: Explicitly invoking super.__ctor in a constructor does
                    not count as calling a super constructor
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: gooberman at gmail.com
Example code at https://run.dlang.io/is/Is9tAs
A workaround is to define a default constructor, as per
https://run.dlang.io/is/mhM24Y
But this is just doubling up on work that I shouldn't need to do.
Came about because I was trying to explicitly invoke a templated constructor in
a base class. Simple example at https://run.dlang.io/is/XAsoyo
--
    
    
More information about the Digitalmars-d-bugs
mailing list