Skip to content

Commit fc28e69

Browse files
committed
Test undeclared call made in a BEGIN.
Partially covers RT #81502 (as in, it covers the actual case, but not the general issue the ticket is about).
1 parent f97f8f3 commit fc28e69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S32-exceptions/misc.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use Test;
33
use lib "t/spec/packages";
44
use Test::Util;
55

6-
plan 292;
6+
plan 293;
77

88
throws_like '42 +', X::AdHoc, "missing rhs of infix", message => rx/term/;
99

@@ -623,4 +623,7 @@ throws_like 'my $a = (1, 2, 3); my @a = |$a;', X::Syntax::ArgFlattener;
623623
# RT #93988
624624
throws_like '5.', X::Comp::Group, sorrows => sub (@s) { @s[0] ~~ X::Syntax::Number::IllegalDecimal };
625625

626+
# RT #81502
627+
throws_like 'BEGIN { ohnoes() }; sub ohnoes() { }', X::Undeclared::Symbols;
628+
626629
# vim: ft=perl6

0 commit comments

Comments
 (0)