import some (modified) MS tests
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / larna.t
diff --git a/t/foreign/Method-Signatures/larna.t b/t/foreign/Method-Signatures/larna.t
new file mode 100644 (file)
index 0000000..d9ec96a
--- /dev/null
@@ -0,0 +1,17 @@
+#!perl
+use strict;
+use warnings FATAL => 'all';
+
+use Test::More;
+
+use Function::Parameters qw(:strict);;
+
+
+ok eval q{ my $a = [ fun () {}, 1 ]; 1 }, 'anonymous function in list is okay'
+        or diag "eval error: $@";
+
+ok eval q{ my $a = [ method () {}, 1 ]; 1 }, 'anonymous method in list is okay'
+        or diag "eval error: $@";
+
+
+done_testing;