www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22811] New: use of destructor is hidden by subclass


          Issue ID: 22811
           Summary: use of destructor is hidden by subclass
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: tim.dlang t-online.de

The following code current does not compile:

class A
class B : A
class C : B
class D : C

DMD produces the following error:
test.d(13): Error: class `test.D` use of `test.B.~this()` is hidden by `D`; use
`alias ~this = B.~this;` to introduce base class overload set

Feb 22 2022