From: Stevan Little Date: Tue, 22 Jan 2008 02:23:15 +0000 (+0000) Subject: this is not needed now X-Git-Tag: 0_35~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fde3d43926269ad735f465ad5315ecf56b38cda7;p=gitmo%2FMoose.git this is not needed now --- diff --git a/lib/Moose/Meta/Method/Constructor.pm b/lib/Moose/Meta/Method/Constructor.pm index 29c6f2f..a85afca 100644 --- a/lib/Moose/Meta/Method/Constructor.pm +++ b/lib/Moose/Meta/Method/Constructor.pm @@ -93,7 +93,7 @@ sub intialize_body { # objects, rather than # Moose::Meta::Attribute. Class::MOP::Attribute attributes # have no type constraints. - my @type_constraints = map { $_->type_constraint } grep { $_->can('type_constraint') } @$attrs; + my @type_constraints = map { $_->type_constraint } @$attrs; my @type_constraint_bodies = map { $_ && $_->_compiled_type_constraint; } @type_constraints;