A couple changes to make MX::Types keep working.
authorDave Rolsky <autarch@urth.org>
Sun, 22 Feb 2009 04:22:36 +0000 (04:22 +0000)
committerDave Rolsky <autarch@urth.org>
Sun, 22 Feb 2009 04:22:36 +0000 (04:22 +0000)
commitf6c0c589a5fd2bef7e04b55218dfb89f5bedb027
treefec569313418fbe57c5579061296fa748e490732
parent9e856c835c42b664192d2d37a0db5468153a7079
A couple changes to make MX::Types keep working.

First, make subtype handle a first arg which is a blessed reference
(which MX::Types will cause to happen).

Second, kill the prototype on as() and use a nasty hack to make it
keep working.
lib/Moose/Util/TypeConstraints.pm