Bug or feature?

Manfred Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 10 11:05:48 PDT 2015


Jack Applegame wrote:

>>         test(10);      // error
 
One can "import" the declaration by using an alias: 

class A {
    void test(int) {}
}

class B : A {
    alias test= super.test;
    void test() {
        super.test(1); // compiles
        test(10);      // compiles
    }
}

-manfred


More information about the Digitalmars-d-learn mailing list