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.
Sendable
1 parent 075846d commit 53d5254Copy full SHA for 53d5254
lib/IRGen/GenProto.cpp
@@ -1044,7 +1044,8 @@ static bool protocolCanHaveDependentConformance(ProtocolDecl *proto) {
1044
ASTContext &ctx = proto->getASTContext();
1045
if (auto runtimeCompatVersion = getSwiftRuntimeCompatibilityVersionForTarget(
1046
ctx.LangOpts.Target)) {
1047
- if (runtimeCompatVersion < llvm::VersionTuple(6, 0))
+ if (runtimeCompatVersion < llvm::VersionTuple(6, 0) &&
1048
+ proto->isSpecificProtocol(KnownProtocolKind::Sendable))
1049
return true;
1050
}
1051
0 commit comments