Cannot coerce when the type does not define a coercion
[gitmo/Moose.git] / t / 100_bugs / 013_lazybuild_required_undef.t
index d90ec05..6afd8a9 100644 (file)
@@ -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 }