X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FTypes%2FTypeDecorator.pm;fp=lib%2FMooseX%2FTypes%2FTypeDecorator.pm;h=943bcd63191ac5cdcafa78a0699c2bd7dd26fb8a;hb=6e73ec86fc0b97ac2130e57e79ebb9028eb0e973;hp=6f028138af5491db08ebeae1ab69c6a93898800b;hpb=d7d0bd99611df609fb566d2aa772e002ce0747c3;p=gitmo%2FMooseX-Types.git diff --git a/lib/MooseX/Types/TypeDecorator.pm b/lib/MooseX/Types/TypeDecorator.pm index 6f02813..943bcd6 100644 --- a/lib/MooseX/Types/TypeDecorator.pm +++ b/lib/MooseX/Types/TypeDecorator.pm @@ -117,8 +117,10 @@ handle $self->isa since AUTOLOAD can't. =cut sub isa { - return 1 if $_[1]->isa('Moose::Meta::TypeConstraint'); - shift->_try_delegate('isa', @_) + my $self = shift; + return + $self->__type_constraint->isa(@_) + || $self->_try_delegate('isa', @_); } =head2 can