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:
@@ -19,7 +19,7 @@ using namespace swift::refactoring::asyncrefactorings;
|
||||
static bool isErrorType(Type Ty, ModuleDecl *MD) {
|
||||
if (!Ty)
|
||||
return false;
|
||||
return !MD->conformsToProtocol(Ty, Ty->getASTContext().getErrorDecl())
|
||||
return !MD->checkConformance(Ty, Ty->getASTContext().getErrorDecl())
|
||||
.isInvalid();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user