summaryrefslogtreecommitdiff
path: root/t/run/switchF.t
diff options
context:
space:
mode:
authorPeter Martini <PeterCMartini@GMail.com>2013-08-06 03:16:35 -0400
committerFather Chrysostomos <sprout@cpan.org>2013-08-06 05:53:07 -0700
commiteb40d2ca32bab47c140b354a1907b0ba5b74f9bc (patch)
tree926a5446502b2b60e6390b9e1b3c86a9c270150c /t/run/switchF.t
parent51da40ed5ad9513dc5f2213b76a414e9eb4c239d (diff)
downloadperl-eb40d2ca32bab47c140b354a1907b0ba5b74f9bc.tar.gz
[perl #2726] Prototype is not applied until BLOCK is defined
In the case of a sub definition with a prototype, the prototype is not attached to the sub until after the body is completely defined. This means that any sub which calls itself will not honor its prototype unless the prototype was declared prior to the sub's definition. Whether or not this behavior is desirable is debatable, but its far too late to do anything about it other than document it and test to make sure it doesn't change.
Diffstat (limited to 't/run/switchF.t')
0 files changed, 0 insertions, 0 deletions