diff --git a/S03-operators/repeat.t b/S03-operators/repeat.t index 621d3b2610..5cd7439e4f 100644 --- a/S03-operators/repeat.t +++ b/S03-operators/repeat.t @@ -9,7 +9,7 @@ Repeat operators for strings and lists =end description -plan 61; +plan 62; #L @@ -204,4 +204,13 @@ is-deeply (|() xx *)[^5], (Nil, Nil, Nil, Nil, Nil), is-deeply @result.map(*.list).list, (((1, 1), (1, 1)), ((1, 1), (1, 1))), 'Nested xx in for-loop'; } + +# RT #130941 +{ + my $y = 25; + my $z = $y xx 1; + $y = '♥'; + is $z, 25, 'xx does not keep containers around'; +} + # vim: ft=perl6