3 use Devel::Declare::MethodInstaller::Simple;
4 BEGIN { Devel::Declare::MethodInstaller::Simple->install_methodhandler(name => 'method', into => 'main') };
6 use Test::More 'no_plan';
9 local $TODO='Method does not throw proper errors for bad parens yet';
10 eval 'method main ( { return "foo" }';
11 like($@,qr/Prototype\snot\sterminated/);
13 eval 'method main ) { return "foo" }';
14 like($@,qr/Illegal\sdeclaration\sof\ssubroutine/);