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

           Summary: Poor error message for derived class without
                    constructor
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2012-11-01 05:09:18 PDT ---
class X {
   this(int n) {}
}

class Y : X { }

qef.d(5): Error: constructor qef.Y.this no match for implicit super() call in
constructor
----
But Y doesn't have a constructor!

Seems the compiler generates an implicit constructor, and then complains that
it's erroneous.

Actually I'm not sure why it doesn't generate this(int n) { super(n); }, but
that's a different issue.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to