-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add Pure-attribute to Tuple types #64141
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
See #63570 (comment) for recent discussion on the topic of Pure annotations. |
Tagging subscribers to this area: @dotnet/area-system-runtime Issue DetailsDescriptionI noticed when reviewing some code that there was no IDE warning for the following code: It would be nice if the Pure-attribute could be added to the Tuple types thereby allowing the IDE to issue a warning in such cases. Many thanks in advance, Reproduction Steps
Expected behaviorIDE warning: 'Return value of pure method is not used' Actual behaviorNo warning Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
Thanks. Closing as a duplicate of #34098 (comment). |
Description
I noticed when reviewing some code that there was no IDE warning for the following code:
Tuple.Create(1,2)
It would be nice if the Pure-attribute could be added to the Tuple types thereby allowing the IDE to issue a warning in such cases.
Many thanks in advance,
/stidsborg
Reproduction Steps
Tuple.Create(1)
Expected behavior
IDE warning: 'Return value of pure method is not used'
Actual behavior
No warning
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: