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.
2 parents 0ee5b91 + 71be544 commit ccefa62Copy full SHA for ccefa62
lib/AST/ASTPrinter.cpp
@@ -2234,8 +2234,11 @@ bool isNonSendableExtension(const Decl *D) {
2234
if (!ED || !ED->isUnavailable())
2235
return false;
2236
2237
- auto nonSendable =
2238
- ED->getExtendedNominal()->getAttrs().getEffectiveSendableAttr();
+ auto *NTD = ED->getExtendedNominal();
+ if (!NTD)
2239
+ return false;
2240
+
2241
+ auto nonSendable = NTD->getAttrs().getEffectiveSendableAttr();
2242
if (!isa_and_nonnull<NonSendableAttr>(nonSendable))
2243
2244
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