Bug 2540 – super can not be using in alias statement
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-12-22T18:59:00Z
Last change time
2014-04-28T01:54:36Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
2korden
Comments
Comment #0 by 2korden — 2008-12-22T18:59:25Z
class A
{
void foo() {}
}
class B : A
{
// alias super.foo foo;
alias A.foo foo;
void foo(int i) {}
}
test.d(8): basic type expected, not super
test.d(8): no identifier for declarator int
test.d(8): semicolon expected to close alias declaration
test.d(8): Declaration expected, not 'super'
Comment #1 by jarrett.billingsley — 2009-05-19T09:56:53Z