Skip to content

Commit

Permalink
Fudged test for RT #74646.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 22, 2015
1 parent e6ff033 commit e963792
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion S12-methods/multi.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 32;
plan 34;

# L<S12/"Multisubs and Multimethods">
# L<S12/"Trusts">
Expand Down Expand Up @@ -209,4 +209,16 @@ is Bar.new.a("not an Int"), 'Any-method in Foo';
'multis with different names but same signatures are not ambiguous';
}

# RT #74646
{
my class A {
multi method foo($a) { "general" }
multi submethod foo(Str $a) { "specific" }
}
my class B is A {}
is A.new.foo("OH HAI"), 'specific', 'multi submethod can be called on exact instance';
#?rakudo todo 'RT #74646'
is B.new.foo("OH HAI"), 'general', 'multi submethod is not inherited';
}

# vim: ft=perl6

0 comments on commit e963792

Please sign in to comment.