Skip to content

Commit 9a4daf7

Browse files
committed
Add test for RT #125482
1 parent 766987b commit 9a4daf7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

S06-signature/introspection.t

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22
use Test;
33
use lib 't/spec/packages';
44
use Test::Util;
5-
plan 54;
5+
plan 56;
66

77
# L<S06/Signature Introspection>
88

@@ -146,4 +146,13 @@ sub j(*@i) {
146146
is_run q[sub prcl(\\) {}; &prcl.perl], { err => "", out => "" }, ".perl on unnamed \\ parameters doesn't err";
147147
}
148148

149+
# RT #125482
150+
{
151+
sub rt125482($a;; $b) { 42 };
152+
is &rt125482.signature.gist, '($a;; $b)',
153+
'";;" in signature stringifies correctly using .gist';
154+
is &rt125482.signature.perl, ':($a;; $b)',
155+
'";;" in signature stringifies correctly using .perl';
156+
}
157+
149158
# vim: ft=perl6

0 commit comments

Comments
 (0)