1 package Moose::Meta::Method::Accessor::Native::Counter::Writer;
8 with 'Moose::Meta::Method::Accessor::Native::Writer';
10 sub _constraint_must_be_checked {
13 my $attr = $self->associated_attribute;
15 return $attr->has_type_constraint
16 && ($attr->type_constraint->name =~ /^(?:Num|Int)$/
17 || ($attr->should_coerce && $attr->type_constraint->has_coercion)