Skip to content

Fix generated waiters to call the renamed getter when an output member's getter name matches its result class name. - #4001

Merged
sbiscigl merged 1 commit into
mainfrom
waiter-result-getter-collision
Nov 18, 2026
Merged

sbiscigl merged 1 commit into
mainfrom
waiter-result-getter-collision

Conversation

@sbiscigl

Copy link
Copy Markdown
Collaborator

Issue #, if available:

Description of changes:

When an output member's getter would have the same name as the result class, the model generator adds another Get, but the waiter generator didn't. For an operation GetFoo with an output member fooResult:

class GetFooResult {
  inline const FooResult& GetGetFooResult() const { return m_fooResult; }
};

// waiter before, doesn't compile
result.GetFooResult().GetStatus()

// waiter after
result.GetGetFooResult().GetStatus()

Regenerating all clients produces no changes.

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sbiscigl
sbiscigl requested a review from wty-Bryant November 13, 2026 18:46
@sbiscigl
sbiscigl force-pushed the waiter-result-getter-collision branch 3 times, most recently from 187d79d to d6879bb Compare November 17, 2026 14:06
…r's getter name matches its result class name.
@sbiscigl
sbiscigl force-pushed the waiter-result-getter-collision branch from d6879bb to ae0c5a8 Compare November 18, 2026 14:37
@sbiscigl
sbiscigl added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 7624424 Nov 18, 2026
6 checks passed
@sbiscigl
sbiscigl deleted the waiter-result-getter-collision branch November 18, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants