-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors for scoped differences in override indexers are missing in some cases #73384
Comments
dotnet-issue-labeler
bot
added
Area-Compilers
untriaged
Issues and PRs which have not yet been triaged by a lead
labels
May 8, 2024
I think the issue is here. It is assumed that if setter is present, then only setter needs to be checked, but for the scoped checks to actually run, there needs to be a ref or ref struct output, as well as input, which is only found on the getter. Lines 1097 to 1122 in f8d563c
|
jaredpar
added
Bug
and removed
untriaged
Issues and PRs which have not yet been triaged by a lead
labels
May 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected: Both commented lines have errors
Actual: Only the first commented line has an error. It seems like adding a set accessor to a similar indexer declaration removes the error.
The text was updated successfully, but these errors were encountered: