Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

check for Type suggestions in Undeclared::Symbols.

  • Loading branch information...
commit cc878f5b449422b3f654e14b9723d6c8e0411b44 1 parent 73618a5
@timo timo authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 S32-exceptions/misc.t
View
6 S32-exceptions/misc.t
@@ -363,6 +363,12 @@ if $emits_suggestions {
throws_like 'sub yoink(Junctoin $barf) { }', X::Parameter::InvalidType, suggestions => 'Junction';
throws_like 'my cool $a', X::Undeclared, suggestions => ["Cool", "Bool"];
+
+ {
+ try eval('Ecxeption.new("wrong!")');
+ ok $! ~~ X::Undeclared::Symbols, "Ecxeption.new throws X::Undeclared::Symbols";
+ is $!.type_suggestion<Ecxeption>, ["Exception"], 'Exception is a suggestion';
+ }
}
throws_like 'class Foobar is Foobar', X::Inheritance::SelfInherit, name => "Foobar";
Please sign in to comment.
Something went wrong with that request. Please try again.