X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fforeign%2FMethod-Signatures-Simple%2FRT80507.t;fp=t%2Fforeign%2FMethod-Signatures-Simple%2FRT80507.t;h=718aac8649aac908faa7439986ffa7582f0fc176;hb=1a52f2db46f6d870454428a07bfae09e0359eeee;hp=0000000000000000000000000000000000000000;hpb=ff265988561375d3cf480004e29e3891094c0afb;p=p5sagit%2FFunction-Parameters.git diff --git a/t/foreign/Method-Signatures-Simple/RT80507.t b/t/foreign/Method-Signatures-Simple/RT80507.t new file mode 100644 index 0000000..718aac8 --- /dev/null +++ b/t/foreign/Method-Signatures-Simple/RT80507.t @@ -0,0 +1,28 @@ +#!perl +use strict; +use warnings FATAL => 'all'; +use Function::Parameters qw(:strict); +use Test::More tests => 2; + +{ + my $uniq = 0; + + method fresh_name() { + $self->prefix . $uniq++ + } +} + +method prefix() { + $self->{prefix} +} + +my $o = bless {prefix => "foo_" }, main::; +is $o->fresh_name, 'foo_0'; + +#TODO: { +# local $TODO = 'do not know how to handle the scope change in line 7'; + is __LINE__, 24; +#} + +__END__ +