Permalink
Browse files

text X::Method::NotFound on normal and .+ dispatches

  • Loading branch information...
1 parent 6f6d6c2 commit d701cfa9febf2461eaefb3a17cceaefe6dbc1042 @moritz moritz committed May 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 S32-exceptions/misc.t
@@ -198,6 +198,9 @@ throws_like 'my sub a { POST 0 }; a()', X::Phaser::PrePost, phaser => 'POST', co
throws_like 'use fatal; my $x = "5 foo" + 8;', X::Str::Numeric, source => '5 foo', pos => 1,
reason => /trailing/;
+throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
+throws_like '1.+foo', X::Method::NotFound, method => 'foo', typename => 'Int';
+
# RT #58558
throws_like '!!! 42', X::AdHoc, payload => 42;
throws_like 'use fatal; ... 42', X::AdHoc, payload => 42;
@@ -218,4 +221,5 @@ throws_like 'sub f() returns Str { 5 }; f', X::TypeCheck::Return, got => Int, ex
throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
+
done;

0 comments on commit d701cfa

Please sign in to comment.