Diagnose that where clause is not supported

This commit is contained in:
Sima Nerush
2023-11-27 20:19:59 -08:00
parent a687032925
commit 23485990e5
8 changed files with 78 additions and 0 deletions

View File

@@ -6408,6 +6408,11 @@ bool InvalidPackExpansion::diagnoseAsError() {
return true;
}
bool InvalidWhereClauseInPackIteration::diagnoseAsError() {
emitDiagnostic(diag::pack_iteration_where_clause_not_supported);
return true;
}
bool CollectionElementContextualFailure::diagnoseAsError() {
auto anchor = getRawAnchor();
auto *locator = getLocator();