== TyTy::InferType::InferTypeKind::INTEGRAL);
if (is_valid)
{
- ltype->apply_primitive_type_hint (*rtype);
+ if (commit_flag)
+ ltype->apply_primitive_type_hint (*rtype);
return rtype;
}
}
== TyTy::InferType::InferTypeKind::FLOAT);
if (is_valid)
{
- ltype->apply_primitive_type_hint (*rtype);
+ if (commit_flag)
+ ltype->apply_primitive_type_hint (*rtype);
return rtype;
}
}
}
}
- return type.clone ();
+ return ltype;
}
break;
= r->get_infer_kind () == TyTy::InferType::InferTypeKind::GENERAL;
if (is_valid)
{
- r->apply_primitive_type_hint (*ltype);
+ if (commit_flag)
+ r->apply_primitive_type_hint (*ltype);
return ltype->clone ();
}
}
= r->get_infer_kind () == TyTy::InferType::InferTypeKind::GENERAL;
if (is_valid)
{
- r->apply_primitive_type_hint (*ltype);
+ if (commit_flag)
+ r->apply_primitive_type_hint (*ltype);
return ltype->clone ();
}
}
|| r->get_infer_kind () == TyTy::InferType::InferTypeKind::INTEGRAL;
if (is_valid)
{
- r->apply_primitive_type_hint (*ltype);
+ if (commit_flag)
+ r->apply_primitive_type_hint (*ltype);
return ltype->clone ();
}
}
|| r->get_infer_kind () == TyTy::InferType::InferTypeKind::INTEGRAL;
if (is_valid)
{
- r->apply_primitive_type_hint (*ltype);
+ if (commit_flag)
+ r->apply_primitive_type_hint (*ltype);
return ltype->clone ();
}
}
|| r->get_infer_kind () == TyTy::InferType::InferTypeKind::FLOAT;
if (is_valid)
{
- r->apply_primitive_type_hint (*ltype);
+ if (commit_flag)
+ r->apply_primitive_type_hint (*ltype);
return ltype->clone ();
}
}
= r->get_infer_kind () != TyTy::InferType::InferTypeKind::FLOAT;
if (is_valid)
{
- r->apply_primitive_type_hint (*ltype);
+ if (commit_flag)
+ r->apply_primitive_type_hint (*ltype);
return ltype->clone ();
}
}
= r->get_infer_kind () != TyTy::InferType::InferTypeKind::FLOAT;
if (is_valid)
{
- r->apply_primitive_type_hint (*ltype);
+ if (commit_flag)
+ r->apply_primitive_type_hint (*ltype);
return ltype->clone ();
}
}