Subject: | Strange "no arguments" error with method signature modules |
With #65726 fixed, I can now use method signatures in re.pl. Yay!
This reveals a new bug. Boo!
$ use MooseX::Method::Signatures;
$ method empty {}
No arguments! at
/Users/schwern/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Devel/REPL/Plugin/DDS.pm
line 17
Error! - Can't use string ("1") as an ARRAY ref while "strict refs" in
use at
/Users/schwern/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/darwin-thread-multi-2level/Data/Dump/Streamer.pm
line 1423.
The error does not effect the code, empty() is defined.
I presume it's trying to display the return value of the "method empty
{}" statement and being confused by some trick or another. This occurs
with all the method signatures modules I tried: perl5i,
MooseX::Method::Signatures and Method::Signatures.