This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
duplicate signature vars gave wrong warning
authorDavid Mitchell <davem@iabyn.com>
Mon, 1 Aug 2016 10:41:42 +0000 (11:41 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Aug 2016 19:54:42 +0000 (20:54 +0100)
commitd79f31b5e8f9a2a1fe64b30c5b1037a44f9169d9
tree3c32c96af6e9c9aa527ee5656b98ea1c0217a45d
parentcf942956f9db1ebbcc26c17e299e56e8eb205ce6
duplicate signature vars gave wrong warning

RT #128719. This:

    sub f ($x, $x) {}

gave

    "state" variable $x masks earlier declaration in same scope

This commit changes that to '"my" variable'
t/op/signatures.t
toke.c