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