mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[DiagnosticsQoI] Sema: Use 'underlying' instead of 'concrete' in opaque result type diagnostic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user