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 2a74d0b commit 6549a0dCopy full SHA for 6549a0d
lib/SIL/SILDeclRef.cpp
@@ -313,6 +313,13 @@ SILLinkage SILDeclRef::getLinkage(ForDefinition_t forDefinition) const {
313
limit = Limit::NeverPublic;
314
}
315
316
+ // The property wrapper backing initializer is never public for resilient
317
+ // properties.
318
+ if (kind == SILDeclRef::Kind::PropertyWrapperBackingInitializer) {
319
+ if (cast<VarDecl>(d)->isResilient())
320
+ limit = Limit::NeverPublic;
321
+ }
322
+
323
// Stored property initializers get the linkage of their containing type.
324
if (isStoredPropertyInitializer()) {
325
// Three cases:
0 commit comments