diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MooseX/NonMoose.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MooseX/NonMoose.pm b/lib/MooseX/NonMoose.pm index 5ab924b..35e960c 100644 --- a/lib/MooseX/NonMoose.pm +++ b/lib/MooseX/NonMoose.pm @@ -24,7 +24,7 @@ sub extends { # XXX: get constructor name from the constructor metaclass? my $super_new = $caller_meta->find_next_method_by_name('new'); - # if we're trying to extend a moose class, just do nothing + # if we're trying to extend a (non-immutable) moose class, just do nothing return if $super_new->package_name eq 'Moose::Object'; if ($super_new->associated_metaclass->can('constructor_class')) { |