X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FFunction-Parameters.git;a=blobdiff_plain;f=t%2Fforeign%2FMethod-Signatures-Simple%2FRT80510.t;fp=t%2Fforeign%2FMethod-Signatures-Simple%2FRT80510.t;h=3097146a36ce122b81c079f0eae068592c0d78c4;hp=0000000000000000000000000000000000000000;hb=1a52f2db46f6d870454428a07bfae09e0359eeee;hpb=ff265988561375d3cf480004e29e3891094c0afb diff --git a/t/foreign/Method-Signatures-Simple/RT80510.t b/t/foreign/Method-Signatures-Simple/RT80510.t new file mode 100644 index 0000000..3097146 --- /dev/null +++ b/t/foreign/Method-Signatures-Simple/RT80510.t @@ -0,0 +1,13 @@ +#!perl +use strict; +use warnings FATAL => 'all'; +use Test::More tests => 2; + +use Function::Parameters; + +fun empty ($x) {} + +is scalar empty(1), undef, "empty func returns nothing (scalar context)"; +is_deeply [empty(1,2)], [], "empty func returns nothing (list context)"; + +__END__