Skip to content

Commit 5b94e54

Browse files
committed
[value-based.t] test for RT #88562, multi dispatch with int literals, anonymous parameters and default values
1 parent 2b4b33c commit 5b94e54

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

S06-multi/value-based.t

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 7;
5+
plan 8;
66

77
# L<S06/Routine modifiers/>
88
# L<S06/Parameters and arguments/>
@@ -32,5 +32,13 @@ plan 7;
3232
is m2("x"), "d", 'if not an Int at all, fall back to Any candidate';
3333
}
3434

35+
# RT #88562
36+
#?rakudo skip 'RT 88562'
37+
{
38+
multi m3(0 , $ ) { 'a' };
39+
multi m3(Int $n, Str $a = 'A') { 'b' };
40+
41+
is m3(2, 'A'), 'b', 'literal Int, anonymous parameters and default values mix';
42+
}
3543

3644
# vim: ft=perl6

0 commit comments

Comments
 (0)