Skip to content

Commit a570e93

Browse files
committed
Removed using desugard type and changed impact from 1 to 10
1 parent 41e2411 commit a570e93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6325,8 +6325,8 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
63256325

63266326
// Impact is higher if the the base type is any function type
63276327
// because function types can't have any members other than self
6328-
if (baseObjTy->getDesugaredType()->is<AnyFunctionType>()) {
6329-
impact += 1;
6328+
if (baseObjTy->is<AnyFunctionType>()) {
6329+
impact += 10;
63306330
}
63316331

63326332
if (recordFix(fix, impact))

0 commit comments

Comments
 (0)