Skip to content

Commit fe9f77c

Browse files
committed
Test for X::Caller::NotDynamic
1 parent 89021cf commit fe9f77c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

S32-exceptions/misc.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,4 +399,6 @@ throws_like 'class Foobar is Foobar', X::Inheritance::SelfInherit, name => "Foob
399399
throws_like q{role Bottle[::T] { method Str { "a bottle of {T}" } }; class Wine { ... }; say Bottle[Wine].new;}, X::Package::Stubbed;
400400
}
401401

402+
throws_like q[sub f() {CALLER::<$x>}; my $x; f], X::Caller::NotDynamic, symbol => '$x';
403+
402404
done;

0 commit comments

Comments
 (0)