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
I'd really like this.
Comment #2 by 2korden — 2009-05-21T06:34:36Z
Vote up!
Comment #3 by yebblies — 2011-07-03T00:57:22Z
Comment #4 by bugzilla — 2011-08-13T00:11:46Z
Comment #5 by bugzilla — 2014-04-28T01:54:36Z
This should have been marked as an enhancement. It also produces the behavior illustrated by https://issues.dlang.org/show_bug.cgi?id=12228