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:
@@ -291,9 +291,9 @@ bool AbstractionPattern::conformsToKnownProtocol(
|
||||
= substTy->getASTContext().getProtocol(protocolKind);
|
||||
|
||||
auto definitelyConforms = [&](CanType t) -> bool {
|
||||
auto result = suppressible->getParentModule()
|
||||
->checkConformanceWithoutContext(t, suppressible,
|
||||
/*allowMissing=*/false);
|
||||
auto result =
|
||||
ModuleDecl::checkConformanceWithoutContext(t, suppressible,
|
||||
/*allowMissing=*/false);
|
||||
return result.has_value() && !result.value().isInvalid();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user