Skip to content

Commit 05bf75e

Browse files
committed
Add test for RT #115502
1 parent 98ef6a0 commit 05bf75e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

S04-phasers/begin.t

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 9;
4+
plan 10;
55

66
# the boundary between run time and compile time is hard to implement right.
77
# Some of those tests might look trivial, but nearly all of them are based
@@ -63,3 +63,8 @@ plan 9;
6363
'BEGIN block was executed before a parse error happened later in the file';
6464

6565
}
66+
67+
# RT #115502
68+
{
69+
is (BEGIN { try 42; } ), 42, 'Can use try at BEGIN time';
70+
}

0 commit comments

Comments
 (0)