Skip Menu |

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

Report information
The Basics
Id: 128291
Status: resolved
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: 0.002_000



Subject: incompatibility with namespace::clean
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.
It's &MyParent::new that is getting wiped out. No idea why.
This is fixed in 0.002_000.