mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user