Permalink
Browse files

test X::TypeCheck::Assignment

  • Loading branch information...
1 parent 1a247e8 commit 6625f6f8be653ffc37d738b9f9ca804a18cb0f46 @moritz moritz committed Jun 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 S32-exceptions/misc.t
@@ -210,6 +210,8 @@ throws_like 'use fatal; ~(1, 2, 6 ... 10)', X::Sequence::Deduction;
throws_like 'class B does Int { }', X::Composition::NotComposable, target-name => 'B', composer => Int;
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;
+throws_like 'my Int $x = "foo"', X::TypeCheck::Assignment, got => 'foo',
+ expected => Int, symbol => '$x';
throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
throws_like 'my class NC { }; NC.new does NC', X::Mixin::NonComposable,

0 comments on commit 6625f6f

Please sign in to comment.