Skip to content

Commit

Permalink
more tests for availabilty-of-self related errors
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Feb 11, 2012
1 parent 34d6705 commit 478ed38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-exceptions/misc.t
Expand Up @@ -132,5 +132,7 @@ throws_like 'm:i(@*ARGS[0])/foo/', X::Value::Dynamic;
throws_like 'my enum Foo (:x(@*ARGS[0]))', X::Value::Dynamic;

throws_like 'self', X::Syntax::Self::WithoutObject;
throws_like 'class { has $.x = $.y }', X::Syntax::VirtualCall, call => '$.y';
throws_like '$.a', X::Syntax::NoSelf, variable => '$.a';

done;

0 comments on commit 478ed38

Please sign in to comment.