Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tests for RT #126089.
  • Loading branch information
jnthn committed Sep 19, 2015
1 parent 1c90b5c commit f55aa8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S17-supply/syntax.t
@@ -1,6 +1,8 @@
use v6;
use Test;

plan 53;

{
my $s = supply {
emit 42;
Expand Down Expand Up @@ -358,4 +360,6 @@ use Test;
is @collected, ['a bear', 'the wolf'], 'Can only be in one whatever block at a time';
}

done-testing;
# RT #126089
throws-like 'emit 42', X::ControlFlow, illegal => 'emit';
throws-like 'done', X::ControlFlow, illegal => 'done';

0 comments on commit f55aa8d

Please sign in to comment.