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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 10 06:14:25 PDT 2007


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 at digitalmars.com
        ReportedBy: konfusious at 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();
    }
}


-- 



More information about the Digitalmars-d-bugs mailing list