X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FCollection.pm;h=cd58f4b01afa23051eb08700550647e7d0612ec1;hb=topic%2Fworks-with-Type;hp=ffed041d7acc066eb1309f5c8b040cc6011b9036;hpb=4e1ce2ecdafddc8ac9d8c223416499323b8b2bc2;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/Collection.pm b/lib/Moose/Meta/Method/Accessor/Native/Collection.pm index ffed041..cd58f4b 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Collection.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Collection.pm @@ -87,7 +87,8 @@ sub _check_new_members_only { # constraint, so we need to check the whole value, not just the members. return 1 if $self->_is_root_type( $tc->parent ) - && $tc->isa('Moose::Meta::TypeConstraint::Parameterized'); + && ( $tc->isa('Moose::Meta::TypeConstraint::Parameterized') + || $tc->isa('Type::Constraint::Parameterized') ); return 0; }