Skip to content

Commit

Permalink
/a/ in sink context in in uppermost scope does not explode
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 11, 2017
1 parent 08ed79b commit ca6de72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S05-metasyntax/regex.t
Expand Up @@ -3,7 +3,7 @@ use lib <t/spec/packages/>;
use Test;
use Test::Util;

plan 50;
plan 51;

throws-like 'qr/foo/', X::Obsolete, 'qr// is gone';

Expand Down Expand Up @@ -276,4 +276,8 @@ is_run 「(try "" ~~ /. ** {NaN}/) for ^1000; print 'pass'」,
# RT #125021
is ~("ddd" ~~ / [ x | d ] **? 2..3 /), "dd", 'frugal match with alternation';

# RT #126972
is_run /a/; print "pass", {:out<pass>, :err(''), :0status},
'/a/ in sink context in in uppermost scope does not explode';

# vim: ft=perl6

0 comments on commit ca6de72

Please sign in to comment.