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 765f8ac commit c0e82ecCopy full SHA for c0e82ec
lib/Sema/TypeCheckConcurrency.h
@@ -459,8 +459,9 @@ bool diagnoseNonSendableTypesWithSendingCheck(
459
return false;
460
}
461
if (auto *subscript = dyn_cast<SubscriptDecl>(decl)) {
462
- if (isa<SendingTypeRepr>(subscript->getResultTypeRepr()))
463
- return false;
+ if (auto resultTypeRepr = subscript->getResultTypeRepr())
+ if (isa<SendingTypeRepr>(resultTypeRepr))
464
+ return false;
465
466
467
return diagnoseNonSendableTypes(
0 commit comments