mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: ModuleDecl::checkConformance() is a static method
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user