From: Dave Rolsky Date: Mon, 12 Jul 2010 15:40:10 +0000 (-0500) Subject: Cannot coerce when the type does not define a coercion X-Git-Tag: 1.11~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6cb6c413473b5155e6a090de267fe198986b5d2e;p=gitmo%2FMoose.git Cannot coerce when the type does not define a coercion --- diff --git a/t/100_bugs/013_lazybuild_required_undef.t b/t/100_bugs/013_lazybuild_required_undef.t index d90ec05..6afd8a9 100644 --- a/t/100_bugs/013_lazybuild_required_undef.t +++ b/t/100_bugs/013_lazybuild_required_undef.t @@ -11,8 +11,8 @@ use Moose; #### or, make required accept undef and use a predicate test -has 'foo' => ( isa => 'Int | Undef', is => 'rw', coerce => 1, lazy_build => 1 ); -has 'bar' => ( isa => 'Int | Undef', is => 'rw', coerce => 1 ); +has 'foo' => ( isa => 'Int | Undef', is => 'rw', lazy_build => 1 ); +has 'bar' => ( isa => 'Int | Undef', is => 'rw' ); sub _build_foo { undef }