Skip to content

Commit

Permalink
Add test for RT #72816
Browse files Browse the repository at this point in the history
  • Loading branch information
skids committed Feb 6, 2015
1 parent 69dda1f commit 5cea494
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S32-exceptions/misc.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 276;
plan 277;

#?DOES 1
throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';;
Expand Down Expand Up @@ -537,6 +537,9 @@ throws_like 'sub infix:<> (){}', X::Comp::Group,
throws_like '&[doesntexist]', X::Comp, # XXX probably needs exception type fix
'unknown operator should complain better';

# RT #72816
throws_like { $*an_undeclared_dynvar = 42 }, X::Dynamic::NotFound;

{
my $*foo = 0;
throws_like { EVAL '$*foo = 1; say' }, X::Obsolete;
Expand Down

0 comments on commit 5cea494

Please sign in to comment.