Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test for RT #85844

  • Loading branch information...
commit 681e1e4d35bf89a13b17ff3d90b11d8b33f1e0a3 1 parent f362fbd
@tadzik tadzik authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 S02-lexical-conventions/sub-block-parsing.t
View
7 S02-lexical-conventions/sub-block-parsing.t
@@ -12,7 +12,7 @@ use Test;
# module{...}
# class{...}
-plan 4;
+plan 5;
#?rakudo skip 'confused near "(sub { 42 "'
ok(sub { 42 }(), 'sub {...} works'); # TODO: clarify
@@ -31,6 +31,11 @@ eval_dies_ok q[
x();
], 'block parsing works with semicolon';
+# RT #85844
+{
+ eval_dies_ok 'sub foo;', 'RT #85844'
+}
+
done;
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.