From: Dave Rolsky Date: Thu, 26 Mar 2009 17:55:35 +0000 (-0500) Subject: Oops, accidentally edited some code X-Git-Tag: 0.72_01~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d33489ce404e0828b95603801d32677721387d2;p=gitmo%2FMoose.git Oops, accidentally edited some code --- diff --git a/lib/Moose/Meta/TypeConstraint/Role.pm b/lib/Moose/Meta/TypeConstraint/Role.pm index cb5c7d7..53a51b2 100644 --- a/lib/Moose/Meta/TypeConstraint/Role.pm +++ b/lib/Moose/Meta/TypeConstraint/Role.pm @@ -68,7 +68,7 @@ sub equals { sub is_a_type_of { my ($self, $type_or_name) = @_; - $type = Moose::Util::TypeConstraints::find_type_constraint($type_or_name); + my $type = Moose::Util::TypeConstraints::find_type_constraint($type_or_name); ($self->equals($type) || $self->is_subtype_of($type_or_name)); }