Subject: | Bad arguments to 'has' are not diagnosed |
My input file included:
has data => (
is => 'rw',
isa => sub { reftype $_[0] eq "ARRAY" }.
init_arg => undef,
lazy => 1,
builder => '_build_data',
);
which caused Moo to crash with the unhelpful error message:
Use of uninitialized value within @_ in list assignment at
/usr/local/lib/perl5/site_perl/5.12.3/Moo.pm line 40.
The problem is that the "isa" line ends with a period instead of a
comma, but this shouldn't cause Moo to crash.