mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #85433 from swiftlang/jepa-main4
AST: Rename `GenericContext::isGeneric` to `hasGenericParamList`
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user