D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2540 - super can not be using in alias statement
Summary: super can not be using in alias statement
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: No Owner
URL:
Keywords: patch, rejects-valid
Depends on:
Blocks:
 
Reported: 2008-12-22 18:59 UTC by Koroskin Denis
Modified: 2014-04-28 01:54 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Koroskin Denis 2008-12-22 18:59:25 UTC
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 Jarrett Billingsley 2009-05-19 09:56:53 UTC
I'd really like this.
Comment 2 Koroskin Denis 2009-05-21 06:34:36 UTC
Vote up!
Comment 5 Walter Bright 2014-04-28 01:54:36 UTC
This should have been marked as an enhancement. It also produces the behavior illustrated by https://issues.dlang.org/show_bug.cgi?id=12228