Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit cb7e988363debafa0f8ce77e0093cc9cd841119c 1 parent a4fdd4f
@moritz moritz authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  S32-exceptions/misc.t
View
3  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;
Please sign in to comment.
Something went wrong with that request. Please try again.