Bug 1052 – DMD 1.009 - aliasing functions from superclasses may result in incorrect conflicts
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-03-11T13:26:00Z
Last change time
2014-02-16T15:23:43Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
h3r3tic
Comments
Comment #0 by h3r3tic — 2007-03-11T13:26:01Z
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)