import some (modified) MS tests
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / paren_on_own_line.t
diff --git a/t/foreign/Method-Signatures/paren_on_own_line.t b/t/foreign/Method-Signatures/paren_on_own_line.t
new file mode 100644 (file)
index 0000000..65d5d19
--- /dev/null
@@ -0,0 +1,20 @@
+#!perl
+
+package Foo;
+
+use strict;
+use warnings FATAL => 'all';
+
+use Function::Parameters qw(:strict);
+use Test::More 'no_plan';
+
+# The problem goes away inside an eval STRING.
+method foo(
+    $arg
+)
+{
+    return $arg;
+}
+
+is $@, '';
+is( Foo->foo(42), 42 );