www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18886] New: Explicitly invoking super.__ctor in a constructor


          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 puremagic.com
          Reporter: gooberman gmail.com

Example code at https://run.dlang.io/is/Is9tAs

A workaround is to define a default constructor, as per

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

May 20 2018