-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Incorrect diagnostic that Deconstruct method is unused. #75995
Comments
@gafter are you getting a compiler warning, or an analyzer warning? If so, can you include the diagnostic id? |
I think it's a compiler informational message. |
@jcouv I can't figure out how to determine that the .Deconstruct method is used here. How is this exposed in teh semantic model? Also checking with @333fred . I do see a IDeconstructAssignmentOperation, but it seems to be missing the target method, unless i'm missing something. Could you guys advise? How do you encode this into the tree? |
There's an issue tracking adding this information to IDeconstructAssignmentOperation: #74757 |
Roslyn reports that
Deconstruct
is unused in the C# code below. But it is used. You would get an error if you remove the method.The text was updated successfully, but these errors were encountered: