Skip to content

Make accessor required for table-level index defs in C##4541

Merged
clockwork-labs-bot merged 1 commit intomasterfrom
joshua/fix/cs-index-accessor
Mar 4, 2026
Merged

Make accessor required for table-level index defs in C##4541
clockwork-labs-bot merged 1 commit intomasterfrom
joshua/fix/cs-index-accessor

Conversation

@joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented Mar 3, 2026

Description of Changes

Make Accessor a required argument for table-level index defs in C# to align with rust and typescript. The same change was done for typescript in #4525.

API and ABI breaking changes

Technically breaks the module api, although I believe this is the behavior that is outlined in the spec, and so the current behavior should really be considered a bug.

Expected complexity level and risk

1

Testing

Added negative compile tests

@joshua-spacetime joshua-spacetime requested a review from rekhoff March 3, 2026 20:45
@joshua-spacetime joshua-spacetime added the api-break A PR that makes an API breaking change label Mar 3, 2026
Copy link
Contributor

@rekhoff rekhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I have not tested this locally, but the test cases provided appear to validate correctly.

@clockwork-labs-bot clockwork-labs-bot added this pull request to the merge queue Mar 3, 2026
Merged via the queue into master with commit 89fba42 Mar 4, 2026
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-break A PR that makes an API breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants