Skip to content

Commit

Permalink
Fudge tests for JVM, wrong multi candidate called
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Nov 21, 2015
1 parent 6fb9b12 commit 3583fd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S06-multi/proto.t
Expand Up @@ -45,6 +45,7 @@ multi bar(| (A $x)) { 2 } #OK not used
multi bar(| (B $x)) { 3 } #OK not used
multi bar(| where { $_[0] == 42 }) { 1 } #OK not used
is(bar(A.new), 2, 'dispatch on class worked (anon cap)');
#?rakudo.jvm 3 todo 'wrong multi candidate called'
is(bar(B.new), 3, 'dispatch on class worked (anon cap)');
is(bar(42), 1, 'dispatch with no possible candidates fell back to proto (anon cap)');
throws-like 'bar(41)', Exception, 'impossible dispatch failed (anon cap)';
Expand Down

0 comments on commit 3583fd3

Please sign in to comment.