Skip to content

Commit 116ac1c

Browse files
committed
[loop.t] Test for RT 63760 -- "loop {} while" is a syntax error
1 parent b0d6bcf commit 116ac1c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S04-statements/loop.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ loop statement tests
1111
1212
=end kwid
1313

14-
plan 13;
14+
plan 14;
1515

1616
# basic loop
1717

@@ -97,4 +97,8 @@ plan 13;
9797
#?niecza skip ':$!to broken'
9898
eval_lives_ok('class A { has $!to; method x { loop { (:$!to); } } };', 'pair colon syntax in a loop refers to an attribute works');
9999

100+
# RT #63760
101+
eval_dies_ok 'loop { say "# RT63760"; last } while 1',
102+
'"loop {} while" is a syntax error (RT 63760)';
103+
100104
# vim: ft=perl6

0 commit comments

Comments
 (0)