We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 638cf56 + a4701f7 commit 3c386d8Copy full SHA for 3c386d8
lib/Sema/CSSimplify.cpp
@@ -8531,6 +8531,12 @@ bool ConstraintSystem::simplifyAppliedOverloadsImpl(
8531
Constraint *disjunction, TypeVariableType *fnTypeVar,
8532
const FunctionType *argFnType, unsigned numOptionalUnwraps,
8533
ConstraintLocatorBuilder locator) {
8534
+ // Don't attempt to filter overloads when solving for code completion
8535
+ // because presence of code completion token means that any call
8536
+ // could be malformed e.g. missing arguments e.g. `foo([.#^MEMBER^#`
8537
+ if (isForCodeCompletion())
8538
+ return false;
8539
+
8540
if (shouldAttemptFixes()) {
8541
auto arguments = argFnType->getParams();
8542
bool allHoles =
0 commit comments