Skip Menu |

This queue is for tickets about the MouseX-Types CPAN distribution.

Report information
The Basics
Id: 95381
Status: new
Priority: 0/
Queue: MouseX-Types

People
Owner: gfuji [...] cpan.org
Requestors: violapiratejunky [...] gmail.com
Cc:
AdminCc:

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



Subject: PositiveInt does not work
MouseX::Types doesn't seem to work for the PositiveInt example given in the documentation. Whenever I try to use it and then set the value to 1 (which is a positive integer), I get this error: Attribute (max_redirects) does not pass the type constraint because: Validation failed for 'PositiveInt' with value 1 at /Library/Perl/5.16/darwin-thread-multi-2level/Mouse/Util.pm line 383. Mouse::Util::throw_error('Mouse::Meta::Attribute=HASH(0x7fc33429a828)', 'Attribute (max_redirects) does not pass the type constraint b...', 'data', 1, 'depth', -1) called at test.pl line 7 I also get the same error when I try to use MouseX::Types::Common for PositiveInt.