support arrayrefs as well as lists for enum and duck_type
authorJesse Luehrs <doy@tozt.net>
Thu, 10 Sep 2009 06:54:07 +0000 (01:54 -0500)
committerDave Rolsky <autarch@urth.org>
Mon, 12 Oct 2009 00:45:44 +0000 (19:45 -0500)
commitbce5d4a5c60623702945aaa2d3750d73361734d5
tree221e37eb797d589e23fa9b35f9479c14b0912e54
parentc279b82ffd1a06a550f2cfa623382d0335dbc39a
support arrayrefs as well as lists for enum and duck_type

this should make things more consistent with their anon-type forms,
without breaking backwards compatibility - just use an arrayref in all
cases.
Changes
lib/Moose/Manual/Delta.pod
lib/Moose/Util/TypeConstraints.pm
t/040_type_constraints/015_enum.t
t/040_type_constraints/034_duck_types.t