my $type_constraint_obj = $attr->type_constraint;
my $type_constraint_name = $type_constraint_obj && $type_constraint_obj->name;
my $type_constraint = $type_constraint_obj
- ? (
- $type_constraint_obj->has_hand_optimized_type_constraint
- ? $type_constraint_obj->hand_optimized_type_constraint
- : $type_constraint_obj->_compiled_type_constraint
- )
+ ? $type_constraint_obj->_compiled_type_constraint
: undef;
my $sub = eval $code;
my @type_constraints = map { $_->type_constraint } @$attrs;
my @type_constraint_bodies = map {
- $_ && ( $_->has_hand_optimized_type_constraint ? $_->hand_optimized_type_constraint : $_->_compiled_type_constraint );
+ $_ && $_->_compiled_type_constraint;
} @type_constraints;
$code = eval $source;