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:
@@ -179,7 +179,7 @@ void ConformingMethodListCallbacks::getMatchingMethods(
|
||||
|
||||
// The return type conforms to any of the requested protocols.
|
||||
for (auto Proto : ExpectedTypes) {
|
||||
if (CurModule->conformsToProtocol(resultTy, Proto))
|
||||
if (CurModule->checkConformance(resultTy, Proto))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user