On Thu Apr 30 06:15:23 2009, arnsholt wrote:
> The following script gives the ouput "A\nB", but the correct output
> should probably be "A\nA".
> 
> class A {
>     method x {
>         say "A";
>     }
> }
> 
> class B is A {
>     method x() {
>         say "B";
>     }
> }
> 
> my B $b .= new;
> A.HOW.dispatch($b, "x");
> A.HOW.dispatch(B, "x");

Current status:

$ ./perl6 foo.p6 
Method 'dispatch' not found for invocant of class ''
  in main program body at line 14:foo.p6

-- 
Will "Coke" Coleda

Reply via email to