my $attr = $self->associated_attribute;
return '' unless $attr->should_coerce && $attr->type_constraint->has_coercion;
- return "$value = \$attr->type_constraint->coerce($value);";
+ return "$value = \$type_constraint_obj->coerce($value);";
}
sub _inline_check_required {