AST: ModuleDecl::checkConformance() is a static method

This commit is contained in:
Slava Pestov
2024-07-05 14:26:43 -04:00
parent 1901862afc
commit 3fcda140bb
45 changed files with 148 additions and 194 deletions

View File

@@ -78,7 +78,7 @@ bool DerivedConformance::canDeriveAdditiveArithmetic(NominalTypeDecl *nominal,
if (v->getInterfaceType()->hasError())
return false;
auto varType = DC->mapTypeIntoContext(v->getValueInterfaceType());
return (bool) DC->getParentModule()->checkConformance(varType, proto);
return (bool) ModuleDecl::checkConformance(varType, proto);
});
}