diff options
Diffstat (limited to 'lib/MooseX/NonMoose.pm')
-rw-r--r-- | lib/MooseX/NonMoose.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MooseX/NonMoose.pm b/lib/MooseX/NonMoose.pm index 7a6aec6..778adf8 100644 --- a/lib/MooseX/NonMoose.pm +++ b/lib/MooseX/NonMoose.pm @@ -13,6 +13,9 @@ sub extends { push @superclasses, 'Moose::Object' unless grep { $_->isa('Moose::Object') } @superclasses; + # XXX: should move the validation out of Moose::extends and into + # MMC::superclasses, and then just call that directly. will still need to + # check that @_ isn't empty in that case. Moose::extends($caller, @superclasses); my $caller_meta = Class::MOP::Class->initialize($caller); |