projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix is_subtype_of - we cannot use ->equals
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
TypeConstraint.pm
diff --git
a/lib/Moose/Meta/TypeConstraint.pm
b/lib/Moose/Meta/TypeConstraint.pm
index
2b56617
..
e135a38
100644
(file)
--- a/
lib/Moose/Meta/TypeConstraint.pm
+++ b/
lib/Moose/Meta/TypeConstraint.pm
@@
-289,7
+289,7
@@
sub is_subtype_of {
my $current = $self;
while (my $parent = $current->parent) {
- return 1 if $parent->equals($type);
+ return 1 if $parent->is_a_type_of($type);
$current = $parent;
}