-
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
CSharpRemoveUnusedVariableCodeFixProvider does not work with top-level statements #44273
Comments
CC @sharwell |
I'm a little surprised by these issues. We should have had some amount of testing of these scenarios for the existing top-level-statements features (i.e. interactive). Is there something very different about the simple-program top-level statements, and interactive top-level statements? |
No, difference for the syntax tree shape |
Actually, that is not accurate, there is no locals and local functions in interactive, they are fields and methods. So, there is a difference in syntax shape |
I'll take a look to block or fix this today |
Start with top-level statement:
Use "Remove unused variable fix".
Observed:
Relates to #43563 (test plan for "top-level statements")
The text was updated successfully, but these errors were encountered: