mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: TypeChecker::conformsToProtocol() => ModuleDecl::checkConformance()
This commit is contained in:
@@ -77,8 +77,7 @@ bool DerivedConformance::canDeriveAdditiveArithmetic(NominalTypeDecl *nominal,
|
||||
if (v->getInterfaceType()->hasError())
|
||||
return false;
|
||||
auto varType = DC->mapTypeIntoContext(v->getValueInterfaceType());
|
||||
return (bool)TypeChecker::conformsToProtocol(varType, proto,
|
||||
DC->getParentModule());
|
||||
return (bool) DC->getParentModule()->checkConformance(varType, proto);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user