File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2855,7 +2855,14 @@ static ArrayRef<Decl *> evaluateMembersRequest(
2855
2855
if (auto *vd = dyn_cast<ValueDecl>(member)) {
2856
2856
// Add synthesized members to a side table and sort them by their mangled
2857
2857
// name, since they could have been added to the class in any order.
2858
- if (vd->isSynthesized ()) {
2858
+ if (vd->isSynthesized () &&
2859
+ // FIXME: IRGen requires the distributed actor synthesized
2860
+ // properties to be in a specific order that is different
2861
+ // from ordering by their mangled name, so preserve the order
2862
+ // they were added in.
2863
+ !(nominal &&
2864
+ (vd == nominal->getDistributedActorIDProperty () ||
2865
+ vd == nominal->getDistributedActorSystemProperty ()))) {
2859
2866
synthesizedMembers.add (vd);
2860
2867
return ;
2861
2868
}
You can’t perform that action at this time.
0 commit comments