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.
1 parent 73f9392 commit d5e9a39Copy full SHA for d5e9a39
lib/Sema/CSApply.cpp
@@ -8671,8 +8671,11 @@ ExprWalker::rewriteTarget(SolutionApplicationTarget target) {
8671
return None;
8672
8673
auto *pattern = resultTarget->getInitializationPattern();
8674
- patternBinding->setPattern(index, pattern,
8675
- resultTarget->getDeclContext());
+ // Record that the pattern has been fully validated,
+ // this is important for subsequent call to typeCheckDecl
8676
+ // because otherwise it would try to re-typecheck pattern.
8677
+ patternBinding->setPattern(index, pattern, resultTarget->getDeclContext(),
8678
+ /*isFullyValidated=*/true);
8679
8680
if (patternBinding->isExplicitlyInitialized(index) ||
8681
(patternBinding->isDefaultInitializable(index) &&
0 commit comments