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 93d467b commit 7f3cce9Copy full SHA for 7f3cce9
lib/Sema/TypeCheckConcurrency.cpp
@@ -699,7 +699,8 @@ static bool isSendableClosure(
699
return false;
700
}
701
702
-bool swift::isSendableType(ModuleDecl *module, Type type) {
+bool swift::isSendableType(const DeclContext *dc, Type type) {
703
+ auto module = dc->getParentModule();
704
auto proto = module->getASTContext().getProtocol(KnownProtocolKind::Sendable);
705
if (!proto)
706
return true;
0 commit comments