update foreign tests
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures-Simple / RT80507.t
CommitLineData
1a52f2db 1#!perl
2use strict;
3use warnings FATAL => 'all';
4use Function::Parameters qw(:strict);
5use Test::More tests => 2;
6
7{
8 my $uniq = 0;
9
10 method fresh_name() {
11 $self->prefix . $uniq++
12 }
13}
14
15method prefix() {
16 $self->{prefix}
17}
18
19my $o = bless {prefix => "foo_" }, main::;
20is $o->fresh_name, 'foo_0';
21
22#TODO: {
23# local $TODO = 'do not know how to handle the scope change in line 7';
24 is __LINE__, 24;
25#}
26
27__END__
28