Permalink
Browse files

"my cool $a" -> X::Undeclared + suggestions

  • Loading branch information...
1 parent 2018e14 commit 73618a57aefccfe94538a8ecc96de7e6b9bce0a3 @timo timo committed Jan 25, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 S32-exceptions/misc.t
View
@@ -361,6 +361,8 @@ if $emits_suggestions {
ok $!.message !~~ /Did you mean/, "doesn't suggest if there's no suggestions.";
throws_like 'sub yoink(Junctoin $barf) { }', X::Parameter::InvalidType, suggestions => 'Junction';
+
+ throws_like 'my cool $a', X::Undeclared, suggestions => ["Cool", "Bool"];
}
throws_like 'class Foobar is Foobar', X::Inheritance::SelfInherit, name => "Foobar";

0 comments on commit 73618a5

Please sign in to comment.