Bug or Feature?
leoandru at gmail.com
leoandru at gmail.com
Tue Jun 13 11:37:26 PDT 2006
I started coding in D a few days now but I ran into a few problems, I wasn't
sure if these were bugs so I didnt make a bug report. the problem is with
interface inheritance and method signatures It doesn't ssem to work as expected
and I don't see any documentation saying otherwise.
interface A
{
void method();
}
interface B : A
{
void method(int a);
}
class Foo : B
{
}
B ref = new Foo();
ref.method(); //doesnt compile, requires an argument.
This works if the method name in interface B is different from A, Im able to
call method from interface. Am I doing something wrong? I expected this to work.
I'm using dmd 0.160 compile on winxp. Thanks for any help/replies!
More information about the Digitalmars-d
mailing list