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 451737b commit 4de2486Copy full SHA for 4de2486
lib/SIL/IR/SIL.cpp
@@ -371,9 +371,9 @@ bool AbstractStorageDecl::exportsPropertyDescriptor() const {
371
if (isa<ProtocolDecl>(getDeclContext()))
372
return false;
373
374
- // Static properties in protocol extensions do not need
+ // Static properties declared directly in protocol do not need
375
// descriptors as existential Any.Type will not resolve to a value.
376
- if (isStatic() && getDeclContext()->getSelfProtocolDecl())
+ if (isStatic() && isa<ProtocolDecl>(getDeclContext()))
377
378
379
// FIXME: We should support properties and subscripts with '_read' accessors;
0 commit comments