X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fforeign%2FMethod-Signatures%2Fparen_plus_open_block.t;fp=t%2Fforeign%2FMethod-Signatures%2Fparen_plus_open_block.t;h=ca8738fbe3c818a6ff0cb8f7027f25dfd0ea2d98;hb=633048d587df4a3745ae768ce6ed550cba5e329f;hp=0000000000000000000000000000000000000000;hpb=595edbcf92e56b601822a62deddef2758aa7f3b5;p=p5sagit%2FFunction-Parameters.git diff --git a/t/foreign/Method-Signatures/paren_plus_open_block.t b/t/foreign/Method-Signatures/paren_plus_open_block.t new file mode 100644 index 0000000..ca8738f --- /dev/null +++ b/t/foreign/Method-Signatures/paren_plus_open_block.t @@ -0,0 +1,18 @@ +#!perl + +use strict; +use warnings FATAL => 'all'; + +package Foo; + +use Test::More "no_plan"; +use Function::Parameters qw(:strict); + +method foo( + $arg +) +{ + return $arg +} + +is( Foo->foo(23), 23 );