Skip to content

Commit a3e26ab

Browse files
committed
[ConstraintSystem] Mark each of the synthesized arguments as a "hole"
1 parent 2120a31 commit a3e26ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,11 @@ class ArgumentFailureTracker : public MatchCallArgumentListener {
847847
CS.getConstraintLocator(argLoc),
848848
TVO_CanBindToInOut | TVO_CanBindToLValue | TVO_CanBindToNoEscape);
849849

850+
CS.recordHole(argType);
851+
CS.addUnsolvedConstraint(Constraint::create(
852+
CS, ConstraintKind::Defaultable, argType, CS.getASTContext().TheAnyType,
853+
CS.getConstraintLocator(argLoc)));
854+
850855
Arguments.push_back(param.withType(argType));
851856
++NumSynthesizedArgs;
852857

0 commit comments

Comments
 (0)