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 c60b661 commit 8201b5cCopy full SHA for 8201b5c
lib/AST/Decl.cpp
@@ -4965,9 +4965,9 @@ bool AbstractStorageDecl::hasPrivateAccessor() const {
4965
4966
bool AbstractStorageDecl::hasDidSetOrWillSetDynamicReplacement() const {
4967
if (auto *func = getParsedAccessor(AccessorKind::DidSet))
4968
- return func->getAttrs().hasAttribute<DynamicReplacementAttr>();
+ return (bool)func->getDynamicallyReplacedDecl();
4969
if (auto *func = getParsedAccessor(AccessorKind::WillSet))
4970
4971
return false;
4972
}
4973
0 commit comments