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 14:16:05 +0000 (16:16 +0200)
commit78a3757db6b8bc439db13dcaf0d916fc915e9df5
tree4f0076ff8dcbb2816564fb22f8dfc6962cf24d12
parenta9ae4661183280e2187ed5518242bc7d0142da0e
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