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=3d2f19525096dc636fa2260ee1879d93709da100;hp=56876261ce94fa46bd2167df6b62a5106d034d48;hb=5a363f78184c2c5ab4eeeaec0cf2dba9487f0d8e;hpb=619338ac4245c7c523d67645d6cd51cb982d4841 diff --git a/lib/Mouse/Meta/TypeConstraint.pm b/lib/Mouse/Meta/TypeConstraint.pm index 5687626..3d2f195 100644 --- a/lib/Mouse/Meta/TypeConstraint.pm +++ b/lib/Mouse/Meta/TypeConstraint.pm @@ -249,11 +249,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, - constraint => $generator->($param), + name => $name, + parent => $self, + parameter => $param, + constraint => $generator->($param), # must be 'constraint', not 'optimized' - type => 'Parameterized', + type => 'Parameterized', ); }