Skip to content

Conversation

@ileitch
Copy link
Contributor

@ileitch ileitch commented Dec 18, 2025

Properties used as subscript keys (e.g., dictionary[key] = 42) were incorrectly indexed as writes, referencing setters instead of getters. Fix by forcing subscript arguments to be treated as reads, except for dynamic member lookup subscripts where the argument represents the member being accessed.

Resolves #56541

Properties used as subscript keys (e.g., `dictionary[key] = 42`) were
incorrectly indexed as writes, referencing setters instead of getters.
Fix by forcing subscript arguments to be treated as reads, except for
dynamic member lookup subscripts where the argument represents the
member being accessed.

Resolves swiftlang#56541
@ileitch
Copy link
Contributor Author

ileitch commented Dec 18, 2025

@swift-ci please test

@ileitch ileitch marked this pull request as ready for review December 18, 2025 10:27
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.

[SR-14162] Index store does not relate static property getter used as subscript key.

1 participant