Skip to content
Browse files

test for "$" X::Backslash::NonVariableDollar

Error message: Non-variable $ must be backslashed
  • Loading branch information...
1 parent c196552 commit 8d88d5706d7e7ad1b21bf489a0e4624cd51b39bd @FROGGS FROGGS committed Nov 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 S32-exceptions/misc.t
View
2 S32-exceptions/misc.t
@@ -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;

0 comments on commit 8d88d57

Please sign in to comment.
Something went wrong with that request. Please try again.