Permalink
Browse files

test X::TypeCheck::Binding and X::TypeCheck::Return

  • Loading branch information...
1 parent a4fdd4f commit cb7e988363debafa0f8ce77e0093cc9cd841119c @moritz moritz committed May 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 S32-exceptions/misc.t
@@ -213,4 +213,7 @@ throws_like 'use fatal; ... 42', X::AdHoc, payload => 42;
throws_like 'die "foo"', X::AdHoc, backtrace => Backtrace;
throws_like 'use fatal; ~(1, 2, 6 ... 10)', X::Sequence::Deduction;
+throws_like 'my Str $x := 3', X::TypeCheck::Binding, got => Int, expected => Str;
+throws_like 'sub f() returns Str { 5 }; f', X::TypeCheck::Return, got => Int, expected => Str;
+
done;

0 comments on commit cb7e988

Please sign in to comment.