diff --git a/S05-match/capturing-contexts.t b/S05-match/capturing-contexts.t index 73390e4cb4..b5843732a5 100644 --- a/S05-match/capturing-contexts.t +++ b/S05-match/capturing-contexts.t @@ -4,7 +4,7 @@ use MONKEY_TYPING; use Test; BEGIN { @*INC.push('t/spec/packages/') }; use Test::Util; -plan 36; +plan 38; # old: L # L @@ -143,6 +143,14 @@ is_run( q{'aa' ~~ /(.)$1/}, is $x, 2, '$/.list does not flattens subcaptures'; } +# RT 74180 +{ + my $s; + try { $s = eval '"foo" ~~ /(foo)/; "$0a"' }; + ok not $!, 'alphabetic characters can follow digits in $0 variable in interpolation'; + is $s, 'fooa', 'alphabetic characters follows $0 interpolated value'; +} + done; # vim: ft=perl6