X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FTypeConstraint.pm;h=f6bdac8bcfc1ba4da5a8fc9f30ee2259893b9dc4;hp=023cb37d948f1c9cffe72fd6616dda0a125df0df;hb=fc83f4cf2ef7708120a216bddc285b93082d7958;hpb=05a12aa45fbcd22111d4f5dde2736c8361540198 diff --git a/lib/Mouse/Meta/TypeConstraint.pm b/lib/Mouse/Meta/TypeConstraint.pm index 023cb37..f6bdac8 100644 --- a/lib/Mouse/Meta/TypeConstraint.pm +++ b/lib/Mouse/Meta/TypeConstraint.pm @@ -211,12 +211,12 @@ sub parameterize{ || Carp::confess("The $name constraint cannot be used, because $param doesn't subtype from a parameterizable type"); return Mouse::Meta::TypeConstraint->new( - name => $name, - parent => $self, - parameter => $param, - constraint => $generator->($param), # must be 'constraint', not 'optimized' + name => $name, + parent => $self, + type_parameter => $param, + constraint => $generator->($param), # must be 'constraint', not 'optimized' - type => 'Parameterized', + type => 'Parameterized', ); }