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 c710950 commit ef96728Copy full SHA for ef96728
lib/SIL/IR/SIL.cpp
@@ -370,7 +370,12 @@ bool AbstractStorageDecl::exportsPropertyDescriptor() const {
370
// Protocol requirements do not need property descriptors.
371
if (isa<ProtocolDecl>(getDeclContext()))
372
return false;
373
-
+
374
+ // Static properties in protocol extensions do not need
375
+ // descriptors as existential Any.Type will not resolve to a value.
376
+ if (isStatic() && getDeclContext()->getSelfProtocolDecl())
377
+ return false;
378
379
// FIXME: We should support properties and subscripts with '_read' accessors;
380
// 'get' is not part of the opaque accessor set there.
381
auto *getter = getOpaqueAccessor(AccessorKind::Get);
0 commit comments