From: gfx Date: Sat, 31 Oct 2009 08:20:10 +0000 (+0900) Subject: Add comments X-Git-Tag: 0.40_04~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5a363f78184c2c5ab4eeeaec0cf2dba9487f0d8e;p=gitmo%2FMouse.git Add comments --- 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', ); }