mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Removed using desugard type and changed impact from 1 to 10
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user