From: Fuji, Goro Date: Fri, 5 Nov 2010 08:11:12 +0000 (+0900) Subject: Tweaks X-Git-Tag: 0.82~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eaa30ab8a2a07fe5a3cd36793f3125ce76e076b4;p=gitmo%2FMouse.git Tweaks --- diff --git a/lib/Mouse/Meta/TypeConstraint.pm b/lib/Mouse/Meta/TypeConstraint.pm index aa4e9fc..7b58d16 100644 --- a/lib/Mouse/Meta/TypeConstraint.pm +++ b/lib/Mouse/Meta/TypeConstraint.pm @@ -24,6 +24,9 @@ sub new { "$type_parameter is not a subtype of $parent_tp", ); } + else { + $type_parameter = undef; + } } }