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:
@@ -2940,9 +2940,10 @@ public:
|
||||
.getRequirements(),
|
||||
[&exprType, this](auto requirement) {
|
||||
if (requirement.getKind() == RequirementKind::Conformance) {
|
||||
auto conformance = TypeChecker::conformsToProtocol(
|
||||
exprType->getRValueType(), requirement.getProtocolDecl(),
|
||||
Implementation->getModuleContext(),
|
||||
auto conformance = Implementation->getModuleContext()
|
||||
->checkConformance(
|
||||
exprType->getRValueType(),
|
||||
requirement.getProtocolDecl(),
|
||||
/*allowMissing=*/false);
|
||||
return !conformance.isInvalid();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user