Skip to content

Commit f9f50a6

Browse files
committed
For now, don't deeply check inherited Sendable conformances.
This is in flux still, where we might decide to require that users restate the conformance. For now, suppress the error.
1 parent f32572b commit f9f50a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6108,6 +6108,8 @@ void TypeChecker::checkConformancesInContext(IterableDeclContext *idc) {
61086108
sendableConformanceIsUnchecked = true;
61096109
else if (isImpliedByConformancePredatingConcurrency(normal))
61106110
sendableConformancePredatesConcurrency = true;
6111+
else if (isa<InheritedProtocolConformance>(conformance))
6112+
sendableConformanceIsUnchecked = true;
61116113
}
61126114
} else if (proto->isSpecificProtocol(KnownProtocolKind::DistributedActor)) {
61136115
if (auto classDecl = dyn_cast<ClassDecl>(nominal)) {

0 commit comments

Comments
 (0)