Removed using desugard type and changed impact from 1 to 10

This commit is contained in:
Vuk Radosavljevic
2020-02-12 17:29:22 -06:00
parent 41e2411752
commit a570e9330f

View File

@@ -6325,8 +6325,8 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
// Impact is higher if the the base type is any function type
// because function types can't have any members other than self
if (baseObjTy->getDesugaredType()->is<AnyFunctionType>()) {
impact += 1;
if (baseObjTy->is<AnyFunctionType>()) {
impact += 10;
}
if (recordFix(fix, impact))