Fix duck_type constraint generators
authorFlorian Ragwitz <rafl@debian.org>
Thu, 25 Aug 2011 13:19:12 +0000 (15:19 +0200)
committerFlorian Ragwitz <rafl@debian.org>
Thu, 25 Aug 2011 13:26:16 +0000 (15:26 +0200)
commit21ddc881fd1f14d24ac37a1cefb5677d99d5cc48
treeacb3f552d1830e23f49fac3259555256f725b7e9
parent881663da10a340f8201edc227c581a4cfdad8c9c
Fix duck_type constraint generators

Both the regular constraint closure and its inlined variant called
Scalar::Util::all assuming that $_[0] would point to the value to be validated
within the all {} block, which of course it doesn't.

I don't know how this ever worked.
Changes
lib/Moose/Meta/TypeConstraint/DuckType.pm