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.
isNonSendableExtension
1 parent bc07600 commit 247dda9Copy full SHA for 247dda9
lib/AST/ASTPrinter.cpp
@@ -2235,8 +2235,11 @@ bool isNonSendableExtension(const Decl *D) {
2235
if (!ED || !ED->isUnavailable())
2236
return false;
2237
2238
- auto nonSendable =
2239
- ED->getExtendedNominal()->getAttrs().getEffectiveSendableAttr();
+ auto *NTD = ED->getExtendedNominal();
+ if (!NTD)
2240
+ return false;
2241
+
2242
+ auto nonSendable = NTD->getAttrs().getEffectiveSendableAttr();
2243
if (!isa_and_nonnull<NonSendableAttr>(nonSendable))
2244
2245
validation-test/IDE/issues_fixed/rdar149032713.swift
@@ -0,0 +1,4 @@
1
+// RUN: %target-swift-ide-test -print-swift-file-interface -source-filename %s
2
3
+@available(*, unavailable)
4
+extension Foo {}
0 commit comments