Method Inheritance

John Demme me at teqdruid.com
Sat May 13 22:54:26 PDT 2006


The below code doesn't work unless you uncomment out the alias.  I think the
reason for this was explained to me at some point, but I don't remember. Or
is it a bug?  I think it should be a bug.

~John Demme 

class A
{
        void foo (int i)
        {}
}

class B: A
{
        void foo (int i, int j)
        {}

        /+alias A.foo foo;+/
}

void main()
{
        B b = new B();
        b.foo(5,7);
        b.foo(7);
}



More information about the Digitalmars-d-bugs mailing list