[CSFix] Add a fix to allow value pack expansions without pack references

Situations like `repeat x` where `x` is `Int` where pack expansion
expression doesn't have any pack references.
This commit is contained in:
Pavel Yaskevich
2023-04-27 09:31:01 -07:00
committed by Pavel Yaskevich
parent 0db67464da
commit d8c8a39cc5
3 changed files with 41 additions and 0 deletions

View File

@@ -14803,6 +14803,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
case FixKind::AllowTupleLabelMismatch:
case FixKind::AddExplicitExistentialCoercion:
case FixKind::DestructureTupleToMatchPackExpansionParameter:
case FixKind::AllowValueExpansionWithoutPackReferences:
llvm_unreachable("handled elsewhere");
}