AST: Rename GenericContext::isGeneric to hasGenericParamList

`isGeneric` is a misleading name because this method checks for the
existence of a `GenericParamList`, which is not implied by genericity.
This commit is contained in:
Anthony Latsis
2025-11-11 14:23:35 +00:00
parent 75506a17ce
commit bda6edb85c
45 changed files with 106 additions and 101 deletions

View File

@@ -9032,7 +9032,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyConformsToConstraint(
return SolutionKind::Solved;
};
if (witness->isGeneric()) {
if (witness->hasGenericParamList()) {
// `DistributedActorSystem.remoteCall`
if (witness->isDistributedActorSystemRemoteCall(/*isVoidReturn=*/false)) {
if (GP->isEqual(cast<FuncDecl>(witness)->getResultInterfaceType()))