Bug 1584 – fail to alias super.memberfunc to current scope
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-10-16T07:46:00Z
Last change time
2014-02-24T15:33:42Z
Keywords
spec
Assigned to
bugzilla
Creator
davidl
Comments
Comment #0 by davidl — 2007-10-16T07:46:38Z
interface C { void a(); }
class A : C { void a() {} }
class B : A, C { alias A.a a; } // fails to compile
The semantic need here is I want a more restrictive interface.
The more restrictive interface enforces each subclass either implements
the interface or explicitly alias it from super scope.
Comment #1 by smjg — 2007-11-08T08:11:05Z
*** This bug has been marked as a duplicate of 502 ***