Merge pull request #85433 from swiftlang/jepa-main4

AST: Rename `GenericContext::isGeneric` to `hasGenericParamList`
This commit is contained in:
Anthony Latsis
2025-11-11 21:12:34 +00:00
committed by GitHub
45 changed files with 106 additions and 101 deletions

View File

@@ -6893,10 +6893,10 @@ bool ASTContext::overrideGenericSignatureReqsSatisfied(
auto *baseCtx = base->getAsGenericContext();
auto *derivedCtx = derived->getAsGenericContext();
if (baseCtx->isGeneric() != derivedCtx->isGeneric())
if (baseCtx->hasGenericParamList() != derivedCtx->hasGenericParamList())
return false;
if (baseCtx->isGeneric() &&
if (baseCtx->hasGenericParamList() &&
(baseCtx->getGenericParams()->size() !=
derivedCtx->getGenericParams()->size()))
return false;