This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #78964] Fix ext/XS-APItest/t/overload.t
authorJerry D. Hedden <jdhedden@cpan.org>
Thu, 11 Nov 2010 12:48:45 +0000 (04:48 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 11 Nov 2010 12:49:36 +0000 (04:49 -0800)
Attached patch fixes the following warning from 'make test':

ext/XS-APItest/t/overload...................................."my"
variable $got masks earlier declaration in same scope at t/overload.t
line 81.
ok

ext/XS-APItest/t/overload.t

index 7bb2a4d..e83144b 100644 (file)
@@ -82,7 +82,7 @@ while (my ($type, $enum) = each %types) {
            my $got = &$func($input, $enum);
            is($got, $sucker, "$name: chain to $desc for to_$type");
            $input = bless [bless [$sucker], 'Chain'], 'Chain';
-           my $got = &$func($input, $enum);
+           $got = &$func($input, $enum);
            is($got, $sucker, "$name: chain to chain to $desc for to_$type");
        }
     }