[DiagnosticsQoI] Sema: Use 'underlying' instead of 'concrete' in opaque result type diagnostic

This commit is contained in:
Anthony Latsis
2023-01-28 20:51:40 +03:00
parent 4e134ca253
commit 792a9cf7c0
5 changed files with 15 additions and 15 deletions

View File

@@ -5968,7 +5968,7 @@ bool MissingGenericArgumentsFailure::diagnoseAsError() {
if (auto opaqueElt =
locator->findLast<LocatorPathElt::OpenedOpaqueArchetype>()) {
auto *opaqueDecl = opaqueElt->getDecl();
emitDiagnostic(diag::cannot_infer_concrete_for_opaque_result,
emitDiagnostic(diag::cannot_infer_underlying_for_opaque_result,
opaqueDecl->getDeclaredInterfaceType());
return true;
}