Repository navigation
Exclude indexers from generated class property metadata - #7560
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review: exclude indexers from generated property metadataThe change is correct and well scoped. It adds Strengths
Minor suggestions (non-blocking)
I did not build or run the tests. No prior review threads need addressing; the only earlier comment is the CodeRabbit draft notice. LGTM. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
[Medium impact] This PR appears safe to merge. SummaryExcludes indexers from both generated class-property metadata paths.
Scope acknowledged by Reviews (1) · Last reviewed commit: "Exclude indexers from generated class pr..." · Reviewed by Greptile |
|
Reviewed all review and conversation surfaces for 1c33838: Claude and Codex both report no blockers, Greptile reports safe to merge, and there are no inline threads. Disposition of Claude's optional helper extraction: retain the two existing enumeration paths for this focused fix. Both now apply the same indexer exclusion, and the regression snapshot covers both generic and non-generic paths. Extracting a helper is not needed for correctness here. Marking ready for CI. The ready-for-review event also reruns Claude; auto-merge must wait for that review to complete successfully and its comment to be read. |
ReviewLooks good. The fix is minimal and targeted:
Non-blocking: if more property-enumeration sites appear later, a shared helper like |
Summary
Public indexers on test classes produced invalid property getters, and overloaded indexers could make metadata initialization ambiguous. Exclude indexers from both generated property-metadata enumeration paths while retaining ordinary properties.
Add a regression snapshot and executable fixtures covering non-generic classes, generic classes with overloaded indexers, and non-generic overloaded indexers. Reflection mode already omits class properties; its broader metadata gap remains tracked in #7522.
Closes #7531
Validation
_7531fixtures on net10.0: 3 passed in source-generated mode and 3 passed with--reflection.this[].Summary by CodeRabbit
Bug Fixes
Tests