From: gfx Date: Fri, 9 Oct 2009 04:37:26 +0000 (+0900) Subject: Fix a bug about immutablizing anonymous classes X-Git-Tag: 0.37_05~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a8391b1105f66a71c29b57fd441d0c02f1897e54;p=gitmo%2FMouse.git Fix a bug about immutablizing anonymous classes --- diff --git a/lib/Mouse/Meta/Method/Constructor.pm b/lib/Mouse/Meta/Method/Constructor.pm index 1d55a97..315051f 100644 --- a/lib/Mouse/Meta/Method/Constructor.pm +++ b/lib/Mouse/Meta/Method/Constructor.pm @@ -133,7 +133,7 @@ sub _generate_processattrs { } if($metaclass->is_anon_class){ - push @res, q{$instnace->{__METACLASS__} = $metaclass;}; + push @res, q{$instance->{__METACLASS__} = $metaclass;}; } if($has_triggers){