has eleven => (is => 'ro', default => 5 );
has twelve => (is => 'lazy', default => 0 );
has thirteen => (is => 'ro', default => 0 );
+ has fourteen => (is => 'ro', required => 1, builder => '_build_fourteen');
+ sub _build_fourteen { {} }
}
sub check {
check seven => map Foo->new->{seven}, 1..2;
+check fourteen => map Foo->new->{fourteen}, 1..2;
+
check eight => map Foo->new->{eight}, 1..2;
ok($c_ran, 'coerce defaults');