Skip Menu |
 

This queue is for tickets about the MooseX-SlurpyConstructor CPAN distribution.

Report information
The Basics
Id: 66785
Status: resolved
Worked: 8 hours (480 min)
Priority: 0/
Queue: MooseX-SlurpyConstructor

People
Owner: ether [...] cpan.org
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.1
Fixed in: 1.2



Subject: child classes cannot be slurpy if the parent is not
Download (untitled) / with headers
text/plain 748b
It would appear that classes need to be slurpy all the way down; it is not sufficient for a child class to be slurpy when a parent is not. Unit test: use strict; use warnings; use Test::More tests => 2; use Test::Deep; use Test::NoWarnings; { package Parent; use Moose; use MooseX::AlwaysCoerce; } { package Child; use Moose; use MooseX::SlurpyConstructor; extends 'Parent'; has extra_args => ( is => 'ro', isa => 'HashRef', slurpy => 1, ); } my $obj = Child->new(foo => 1); cmp_deeply( $obj->extra_args, { foo => 1 }, 'extra arguments were slurped up', );


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.