www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1567] New: call to private super-constructor should not be allowed

http://d.puremagic.com/issues/show_bug.cgi?id=1567

           Summary: call to private super-constructor should not be allowed
           Product: D
           Version: 1.015
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: konfusious gmx.de


When inheriting from a super class with private constructor, a call to the
private super-constructor from inside the inheriting class is not recognized as
error.

Example:
module abstractClass;

abstract class AbstractClass
{
    private this()
    {
    }
}
---------------------
import abstractClass;

class InheritingClass : AbstractClass
{
    public this()
    {
        super();
    }
}


-- 
Oct 10 2007