Change how the TC sugar bits work so that the arguments are
authorDave Rolsky <autarch@urth.org>
Sat, 21 Feb 2009 22:00:59 +0000 (22:00 +0000)
committerDave Rolsky <autarch@urth.org>
Sat, 21 Feb 2009 22:00:59 +0000 (22:00 +0000)
commit9a63fabaeba45a7cad289ab21527e7470c4d569a
treef4a933e85f65e1f1fc61f669f28c57efe5a6fc44
parent33c8a6d0b46cdbed4c28f553f82fa6e87133ecf9
Change how the TC sugar bits work so that the arguments are
unambiguous (as long as you use the sugar).

If type or subtype is called without sugar helpers, the behavior
remains the same (but is deprecated).

Added tests for the things that are fixed, as well as for the old behavior.
Changes
lib/Moose/Util/TypeConstraints.pm
t/040_type_constraints/001_util_type_constraints.t