mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Requestify the computation of the list of memberwise initialized properties.
Fixes rdar://110776763, a case where initialized stored properties introduced by peer macros weren't working alongside declared stored properties.
This commit is contained in:
@@ -3415,7 +3415,7 @@ collectMembersForInit(ResolvedCursorInfoPtr CursorInfo,
|
||||
|
||||
SourceManager &SM = nominalDecl->getASTContext().SourceMgr;
|
||||
|
||||
for (auto member : nominalDecl->getMembers()) {
|
||||
for (auto member : nominalDecl->getMemberwiseInitProperties()) {
|
||||
auto varDecl = dyn_cast<VarDecl>(member);
|
||||
if (!varDecl) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user