X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FTypeConstraint.pm;h=a9edd64a11c73a107398d6de5d07f61a865e5315;hb=8cf6cb3babb16036cf993765f283ef71295b8917;hp=15fe6e9053cf760d27f717cecf6f6c74f1253a98;hpb=568f88f209d3a7d30ed799f3434dd865842d1aa3;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/TypeConstraint.pm b/lib/Mouse/Meta/TypeConstraint.pm index 15fe6e9..a9edd64 100644 --- a/lib/Mouse/Meta/TypeConstraint.pm +++ b/lib/Mouse/Meta/TypeConstraint.pm @@ -261,8 +261,9 @@ sub _identity; # overload 0+ sub _unite { # overload infix:<|> my($lhs, $rhs) = @_; require Mouse::Util::TypeConstraints; - return Mouse::Util::TypeConstraints::find_or_parse_type_constraint( - " $lhs | $rhs", + return Mouse::Util::TypeConstraints::_find_or_create_union_type( + $lhs, + Mouse::Util::TypeConstraints::find_or_create_isa_type_constraint($rhs), ); } @@ -275,7 +276,7 @@ Mouse::Meta::TypeConstraint - The Mouse Type Constraint metaclass =head1 VERSION -This document describes Mouse version 0.86 +This document describes Mouse version 0.91 =head1 DESCRIPTION