On Mon, Sep 21, 2009 at 06:41:37AM -0700, Carl Mäsak wrote: > <masak> rakudo: class A { method foo() { say "A" } }; class B {}; my > $b = B.new; $b.A::foo > <p6eval> rakudo 836c8c: OUTPUT«A» > <masak> o.O > <masak> wait a minute. > <masak> the classes do not inherit from each other. > <jnthn> masak: oh > <jnthn> masak: In that case it'll try and explode. > <masak> I agree. > <masak> but that's actually two bugs, then. > <jnthn> well, it's the same underlying issue > * masak pretends not to hear that > <masak> two tickets coming up!
I agree that the existing behavior is wrong, but what should happen here? Should it report a type mismatch on the invocant when invoking A::foo, or should it complain that A::foo isn't a valid method for a B object? Pm