From: John Napiorkowski Date: Fri, 24 Oct 2008 18:04:12 +0000 (+0000) Subject: parameterized contstraints when subclassing should create a parameterizable constraint X-Git-Tag: 0.60~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=83526133b778b5efeaeaa31048203e9b873550a3;p=gitmo%2FMoose.git parameterized contstraints when subclassing should create a parameterizable constraint --- diff --git a/lib/Moose/Meta/TypeConstraint/Parameterized.pm b/lib/Moose/Meta/TypeConstraint/Parameterized.pm index d7b78c2..e6b87d9 100644 --- a/lib/Moose/Meta/TypeConstraint/Parameterized.pm +++ b/lib/Moose/Meta/TypeConstraint/Parameterized.pm @@ -6,6 +6,7 @@ use metaclass; use Scalar::Util 'blessed'; use Moose::Util::TypeConstraints; +use Moose::Meta::TypeConstraint::Parameterizable; our $VERSION = '0.60'; $VERSION = eval $VERSION; @@ -58,7 +59,7 @@ sub compile_type_constraint { sub create_child_type { my ($self, %opts) = @_; - return Moose::Meta::TypeConstraint->new(%opts, parent => $self); + return Moose::Meta::TypeConstraint::Parameterizable->new(%opts, parent=>$self); } 1;