update foreign tests
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures-Simple / RT80508.t
diff --git a/t/foreign/Method-Signatures-Simple/RT80508.t b/t/foreign/Method-Signatures-Simple/RT80508.t
new file mode 100644 (file)
index 0000000..3384f40
--- /dev/null
@@ -0,0 +1,18 @@
+#!perl
+use strict;
+use warnings FATAL => 'all';
+use Test::More tests => 1;
+
+{
+    package My::Obj;
+    use Function::Parameters qw(:strict);
+
+    method with_space ( $this : $that ) {
+        return ($this, $that);
+    }
+}
+
+is_deeply [ My::Obj->with_space (1) ], [ 'My::Obj', 1 ], 'space between invocant name and colon should parse';
+
+__END__
+