X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fforeign%2FMethod-Signatures-Simple%2FRT80508.t;fp=t%2Fforeign%2FMethod-Signatures-Simple%2FRT80508.t;h=3384f40e3576561a556cd25958bbc7ef88ebe6ba;hb=1a52f2db46f6d870454428a07bfae09e0359eeee;hp=0000000000000000000000000000000000000000;hpb=ff265988561375d3cf480004e29e3891094c0afb;p=p5sagit%2FFunction-Parameters.git diff --git a/t/foreign/Method-Signatures-Simple/RT80508.t b/t/foreign/Method-Signatures-Simple/RT80508.t new file mode 100644 index 0000000..3384f40 --- /dev/null +++ b/t/foreign/Method-Signatures-Simple/RT80508.t @@ -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__ +