From: Dave Rolsky Date: Thu, 19 Feb 2009 21:33:56 +0000 (+0000) Subject: Actually test that this works and fix some unchanged var names X-Git-Tag: 0.77_01~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4fedc229de828075278a926c85429fea341b4974;p=gitmo%2FClass-MOP.git Actually test that this works and fix some unchanged var names --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 4d97640..4531922 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -172,14 +172,14 @@ sub check_metaclass_compatibility { ($self->isa($super_meta_type)) || confess $self->name . "->meta => (" . (ref($self)) . ")" . " is not compatible with the " . - $class_name . "->meta => (" . ($super_meta_type) . ")"; + $superclass_name . "->meta => (" . ($super_meta_type) . ")"; # NOTE: # we also need to check that instance metaclasses # are compatibile in the same the class. ($self->instance_metaclass->isa($super_meta->instance_metaclass)) || confess $self->name . "->meta->instance_metaclass => (" . ($self->instance_metaclass) . ")" . " is not compatible with the " . - $class_name . "->meta->instance_metaclass => (" . ($super_meta->instance_metaclass) . ")"; + $superclass_name . "->meta->instance_metaclass => (" . ($super_meta->instance_metaclass) . ")"; } }