Skip to content

Commit 280943f

Browse files
author
Greg Titus
committed
Raise impact of DefineMemberBasedOnUse to at least match RemoveInvalidCall.
1 parent a079c5c commit 280943f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11115,7 +11115,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
1111511115

1111611116
auto instanceTy = baseObjTy->getMetatypeInstanceType();
1111711117

11118-
auto impact = 2;
11118+
auto impact = 10;
1111911119
// Impact is higher if the base type is any function type
1112011120
// because function types can't have any members other than self
1112111121
if (instanceTy->is<AnyFunctionType>()) {

0 commit comments

Comments
 (0)