[Issue 1052] New: DMD 1.009 - aliasing functions from superclasses may result in incorrect conflicts

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 11 11:26:14 PDT 2007


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

           Summary: DMD 1.009 - aliasing functions from superclasses may
                    result in incorrect conflicts
           Product: D
           Version: 1.008
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: h3r3tic at mat.uni.torun.pl


1.009 was not in the list, so i picked 1.008 as the DMD version.

// superalias.d:

class Base {
        void func(int a) {}
}


class Foo : Base {
        alias Base.func func;
}


class Bar : Foo {
        alias Foo.func func;
        void func(char[] a) {}
}

// ----

superalias.d(7): alias superalias.Foo.func conflicts with superalias.Bar.func
at superalias.d(13)


-- 



More information about the Digitalmars-d-bugs mailing list