Subject: | Crappy error message |
Date: | Wed, 3 Aug 2011 13:45:40 -0400 |
To: | bug-moose [...] rt.cpan.org |
From: | Mark Dominus <mjd [...] icgroup.com> |
package Bug;
use Moose;
has member => (
is => 'ro',
isa => 'HashRef',
traits => [ 'Hash' ],
handles => { method => sub {} },
);
1;
In Moose 2.0005, this fails with:
Not an ARRAY reference at /usr/local/lib/perl5/site_perl/5.12.3/i686-
linux/Moose/Meta/Attribute/Native/Trait.pm line 111.
I do not claim that what I did should work, but it should produce an
intelligible error message.