We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9478c commit bd7e3abCopy full SHA for bd7e3ab
lib/Sema/TypeCheckConcurrency.cpp
@@ -3685,11 +3685,12 @@ NormalProtocolConformance *GetImplicitSendableRequest::evaluate(
3685
if (classDecl) {
3686
if (Type superclass = classDecl->getSuperclass()) {
3687
auto classModule = classDecl->getParentModule();
3688
- if (TypeChecker::conformsToKnownProtocol(
3689
- classDecl->mapTypeIntoContext(superclass),
3690
- KnownProtocolKind::Sendable,
3691
- classModule))
3692
- return nullptr;
+ if (auto proto = nominal->getASTContext().getProtocol(KnownProtocolKind::Sendable)) {
+ if (TypeChecker::conformsToProtocol(
+ classDecl->mapTypeIntoContext(superclass),
+ proto, classDecl))
+ return nullptr;
3693
+ }
3694
}
3695
3696
0 commit comments