Subject: | Doesn't work in Moo Roles |
MooX::Enumeration: 0.007
Moo::Role: 2.003004
Unfortunately, there's a problem using MooX::Enumeration in Moo Roles:
package Foo;
use Moo::Role;
use MooX::Enumeration;
has status => (
is => 'ro',
isa => Enum [qw[ pass fail ]],
handles => 1,
);
1;
with the result
perl Foo.pm
Foo doesn't have a `has` function at Foo.pm line 5.
BEGIN failed--compilation aborted at Foo.pm line 5.
Thanks,
Diab