http://rt.cpan.org/Public/Bug/Display.html?id=56523
$class->throw_error("Unknown accessor type '$type'");
}
- if ($attribute->is_lazy) {
+ if ($attribute->is_lazy and $type ne 'wo') {
my $value;
if (defined $builder){
$value = '$default';
}
- $accessor .= "els" if $type eq 'rw' || $type eq 'wo';
+ $accessor .= "els" if $type eq 'rw';
$accessor .= "if(!exists $slot){\n";
if($should_coerce){
$accessor .= "$slot = \$constraint->coerce($value)";