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

Owner: Nobody in particular
Requestors: ether [...]

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 line 25. # got child with Use of uninitialized value in print at line 28.

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

Please report any issues with to