diff options
Diffstat (limited to 'lib/MooseX')
-rw-r--r-- | lib/MooseX/NonMoose/Meta/Role/Constructor.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MooseX/NonMoose/Meta/Role/Constructor.pm b/lib/MooseX/NonMoose/Meta/Role/Constructor.pm index 23de2be..31e5046 100644 --- a/lib/MooseX/NonMoose/Meta/Role/Constructor.pm +++ b/lib/MooseX/NonMoose/Meta/Role/Constructor.pm @@ -7,9 +7,8 @@ around can_be_inlined => sub { my $meta = $self->associated_metaclass; my $super_new = $meta->find_method_by_name($self->name); + # XXX is this even the right test? if (!$super_new->associated_metaclass->isa($self->_expected_constructor_class)) { - # XXX: in the future, hopefully we'll be able to inline this? - #return $self->should_be_inlined; return 1; } |