Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test for "$" X::Backslash::NonVariableDollar
Error message: Non-variable $ must be backslashed
  • Loading branch information
FROGGS committed Nov 28, 2012
1 parent c196552 commit 8d88d57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-exceptions/misc.t
Expand Up @@ -141,6 +141,8 @@ throws_like 'for 1, 2', X::Syntax::Missing, what => 'block';
throws_like 'my @a()', X::Syntax::Reserved, reserved => /shape/ & /array/;
throws_like 'my &a()', X::Syntax::Reserved, instead => /':()'/;

throws_like '"$"', X::Backslash::NonVariableDollar;

throws_like 'm:i(@*ARGS[0])/foo/', X::Value::Dynamic;

throws_like 'self', X::Syntax::Self::WithoutObject;
Expand Down

0 comments on commit 8d88d57

Please sign in to comment.