Skip Menu |
 

This queue is for tickets about the MooX-TypeTiny CPAN distribution.

Report information
The Basics
Id: 128291
Status: new
Priority: 0/
Queue: MooX-TypeTiny

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: incompatibility with namespace::clean
Download (untitled) / with headers
text/plain 770b
Looks like the subs that are added by MooX::TypeTiny are wiped out by namespace::clean: use strict; use warnings; { package MyParent; use Moo; no Moo::sification; use strictures 2; use MooX::TypeTiny; use Types::Standard 'Str'; use namespace::clean; has mystr => ( is => 'ro', isa => Str, ); } { package MyChild; use parent 'MyParent'; } my $parent = MyParent->new(mystr => 'hi'); print STDERR "# got parent with ", $parent->mystr, "\n"; my $child = MyChild->new(mystr => 'morehi'); print STDERR "# got child with ", $child->mystr, "\n"; __END__ # got parent with Use of uninitialized value in print at moox-bug.pl line 25. # got child with Use of uninitialized value in print at moox-bug.pl line 28.


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.