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 2697e96 + 045302b commit 1ef2c59Copy full SHA for 1ef2c59
lib/Sema/CSSimplify.cpp
@@ -10774,8 +10774,12 @@ bool ConstraintSystem::simplifyAppliedOverloadsImpl(
10774
// Don't attempt to filter overloads when solving for code completion
10775
// because presence of code completion token means that any call
10776
// could be malformed e.g. missing arguments e.g. `foo([.#^MEMBER^#`
10777
- if (isForCodeCompletion())
10778
- return false;
+ if (isForCodeCompletion()) {
+ bool ArgContainsCCTypeVar = Type(argFnType).findIf(isCodeCompletionTypeVar);
10779
+ if (ArgContainsCCTypeVar || isCodeCompletionTypeVar(fnTypeVar)) {
10780
+ return false;
10781
+ }
10782
10783
10784
if (shouldAttemptFixes()) {
10785
auto arguments = argFnType->getParams();
0 commit comments