Closed arakov closed 3 years ago
Much simpler sample which should work as well:
A;
B;
C;
D
{
foo(A a)
{
console.writeLine("A")
}
foo(a)
{
console.writeLine("default")
}
}
E : D
{
foo(B b)
{
console.writeLine("B")
}
}
public program()
{
var c := new C();
var e := new E();
e.foo(c) // MethodNotFoundException is raised rather then D default handler
}
done
Describe the bug The parent default multi method dispatcher should be called if the message is not dispatched for a child
To Reproduce
Expected behavior The interface implementation should be invoked.