diff options
author | doy <doy@tozt.net> | 2009-04-11 18:42:14 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-04-11 18:42:14 -0500 |
commit | 547469b0aeea58c04c0e122ffb220be27c14f204 (patch) | |
tree | 0485bccd220399b48623b7f9e337311b59b25157 /lib | |
parent | b2657b911ca65f9ea4e747855c0973b67f210562 (diff) | |
download | moosex-nonmoose-547469b0aeea58c04c0e122ffb220be27c14f204.tar.gz moosex-nonmoose-547469b0aeea58c04c0e122ffb220be27c14f204.zip |
no, moose doesn't automatically inline constructors, i was just getting my own constructor back
Diffstat (limited to 'lib')
-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 1d76f52..b2c6037 100644 --- a/lib/MooseX/NonMoose.pm +++ b/lib/MooseX/NonMoose.pm @@ -33,6 +33,9 @@ sub extends { # no reason to install a new one return if $constructor_class_meta->can('does_role') && $constructor_class_meta->does_role('MooseX::NonMoose::Meta::Role::Constructor'); + # if the constructor we're inheriting is an inlined version of the + # default moose constructor, don't do anything either + return if $constructor_class_meta->name eq 'Moose::Meta::Method::Constructor'; } $caller_meta->add_method(new => sub { |