Difference between IDE0059 and CS0219 #7766
Replies: 2 comments
-
Both give IDE0059, which is a more extensive set of checks about a value being used. Only the latter gives CS0219 because that is a very old warning that that only ran on limited cases, and opts itself out in others. In this case, it doesn't run on interpolated strings. So you don't get any warnings there. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing out as this is not a csharplang discussion. Questions about warnings and analyzers can go to dotnet/roslyn. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The first
var
assignment elicits IDE0059 and the second elicits CS0219, why?Beta Was this translation helpful? Give feedback.
All reactions