Skip to content

Commit 9ee04a8

Browse files
committed
require an is dynamic if you're gonna use CALLER.
1 parent 50a3a42 commit 9ee04a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S02-names/pseudo.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ plan 142;
328328
is f2({ CALLER::<$*foo> }), 92, 'CALLER::<$*foo> works';
329329
is f2({ ::($caller)::('$*foo') }), 92, '::("CALLER")::<$*foo> works';
330330

331-
my $y = 93; #OK
331+
my $y is dynamic = 93; #OK
332332
if 1 {
333333
is $CALLER::y, 93, 'CALLER:: works in inline blocks';
334334
is $::($caller)::y, 93, '::("CALLER") works in inline blocks';

0 commit comments

Comments
 (0)