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