[Issue 1419] New: dup attr not checked in the sub-class

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 13 11:24:16 PDT 2007


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

           Summary: dup attr not checked in the sub-class
           Product: D
           Version: 1.020
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: someanon at yahoo.com


dupdefbug.d:
================================
class A {
  int attr;
}

class B : A {
  int attr;
}
================================

$ dmd.exe -c dupdefbug.d

no error reported.

It should report B.attr is dup of A.attr.


-- 



More information about the Digitalmars-d-bugs mailing list