www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Auto generated ctor can be made private

shinichiro.h posted this on D.gnu.  With the changes in 0.106, it also 
affects DMD.

Module A:
   module a;
   class A { this() { } }
   class B : A { private: }


Module B:
   import a;
   void x() { new B; }

Compiling module B yields:

b.d:2: class a.B member this is not accessible


David
Nov 15 2004