X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fforeign%2FMethod-Signatures%2Finto.t;fp=t%2Fforeign%2FMethod-Signatures%2Finto.t;h=c202e42d1667535ee256f32fdb5a4fe042af66c4;hb=1a52f2db46f6d870454428a07bfae09e0359eeee;hp=0000000000000000000000000000000000000000;hpb=ff265988561375d3cf480004e29e3891094c0afb;p=p5sagit%2FFunction-Parameters.git diff --git a/t/foreign/Method-Signatures/into.t b/t/foreign/Method-Signatures/into.t new file mode 100644 index 0000000..c202e42 --- /dev/null +++ b/t/foreign/Method-Signatures/into.t @@ -0,0 +1,21 @@ +#!perl +use strict; +use warnings FATAL => 'all'; + +# Importing always affects the currently compiling scope. + +package Foo; + +use Test::More 'no_plan'; + +BEGIN { + package Bar; + require Function::Parameters; + Function::Parameters->import; +} + +is( Foo->foo(42), 42 ); + +method foo ($arg) { + return $arg; +}