Skip to content

Commit

Permalink
test for X::Does::TypeObject raising for 'does' operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Mar 29, 2012
1 parent c17cdc6 commit 296a529
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-exceptions/misc.t
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ throws_like 'my $::("foo")', X::Syntax::Variable::IndirectDeclaration;
throws_like '@a', X::Undeclared, symbol => '@a';
throws_like 'augment class Any { }', X::Syntax::Augment::WithoutMonkeyTyping;
throws_like 'use MONKEY_TYPING; augment role Positional { }', X::Syntax::Augment::Role;
throws_like 'my $foo does &Int', X::Does::TypeObject;
throws_like 'my $foo does &Int, &Bool', X::Does::TypeObject;

throws_like 'sub f($a?, $b) { }', X::Parameter::WrongOrder,
misplaced => 'required',
Expand Down

0 comments on commit 296a529

Please sign in to comment.