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 @@ -2842,7 +2842,14 @@ static ArrayRef<Decl *> evaluateMembersRequest(
2842
2842
if (auto *vd = dyn_cast<ValueDecl>(member)) {
2843
2843
// Add synthesized members to a side table and sort them by their mangled
2844
2844
// name, since they could have been added to the class in any order.
2845
- if (vd->isSynthesized ()) {
2845
+ if (vd->isSynthesized () &&
2846
+ // FIXME: IRGen requires the distributed actor synthesized
2847
+ // properties to be in a specific order that is different
2848
+ // from ordering by their mangled name, so preserve the order
2849
+ // they were added in.
2850
+ !(nominal &&
2851
+ (vd == nominal->getDistributedActorIDProperty () ||
2852
+ vd == nominal->getDistributedActorSystemProperty ()))) {
2846
2853
synthesizedMembers.add (vd);
2847
2854
return ;
2848
2855
}
You can’t perform that action at this time.
0 commit comments