Skip to content

Commit 48c9767

Browse files
committed
[CSApply] Make sure that hole type are not propagated to AST
1 parent 78ea3de commit 48c9767

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/CSApply.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7662,6 +7662,8 @@ namespace {
76627662
// "Mismatched types!");
76637663
assert(!exprType->hasTypeVariable() &&
76647664
"Should not write type variable into expression!");
7665+
assert(!exprType->hasHole() &&
7666+
"Should not write type holes into expression!");
76657667
expr->setType(exprType);
76667668

76677669
if (auto kp = dyn_cast<KeyPathExpr>(expr)) {

0 commit comments

Comments
 (0)