Skip to content

Commit ac485b0

Browse files
committed
[CSApply] Mark initializer as checked after it is set
Once coerced initializer expression has been set for a particular pattern binding entry, let's mark it as checked, otherwise decl checker might try to re-typecheck it.
1 parent 83cc918 commit ac485b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/CSApply.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8811,6 +8811,7 @@ ExprWalker::rewriteTarget(SolutionApplicationTarget target) {
88118811

88128812
if (patternBinding->getInit(index)) {
88138813
patternBinding->setInit(index, resultTarget->getAsExpr());
8814+
patternBinding->setInitializerChecked(index);
88148815
}
88158816
}
88168817

0 commit comments

Comments
 (0)