We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb9b12 commit 3583fd3Copy full SHA for 3583fd3
S06-multi/proto.t
@@ -45,6 +45,7 @@ multi bar(| (A $x)) { 2 } #OK not used
45
multi bar(| (B $x)) { 3 } #OK not used
46
multi bar(| where { $_[0] == 42 }) { 1 } #OK not used
47
is(bar(A.new), 2, 'dispatch on class worked (anon cap)');
48
+#?rakudo.jvm 3 todo 'wrong multi candidate called'
49
is(bar(B.new), 3, 'dispatch on class worked (anon cap)');
50
is(bar(42), 1, 'dispatch with no possible candidates fell back to proto (anon cap)');
51
throws-like 'bar(41)', Exception, 'impossible dispatch failed (anon cap)';
0 commit comments