Fix bug with multiple class_type statements.
authorTomas Doran <bobtfish@bobtfish.net>
Thu, 15 Dec 2011 17:02:07 +0000 (17:02 +0000)
committerDave Rolsky <autarch@urth.org>
Sun, 19 Feb 2012 23:53:50 +0000 (17:53 -0600)
commit0f9a0b95605b8f5d8bec1c42bc84dad667c4a0ed
tree71510e79c162585eadb9af74abab6f875b577a08
parent1ebf2c009f0d1009cb0bef0179b297ba043c47e9
Fix bug with multiple class_type statements.

We would previously override the existing class_type with a new one, thereby losing any coercions that
were defined on the previous class_type.

This bug was introduced in commit 6f49644548
Changes
lib/Moose/Util/TypeConstraints.pm
t/type_constraints/class_type_constraint.t