-
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
Check operations when doing type name simplification #58285
Check operations when doing type name simplification #58285
Conversation
src/EditorFeatures/VisualBasicTest/SimplifyTypeNames/SimplifyTypeNamesTests.vb
Outdated
Show resolved
Hide resolved
@@ -977,7 +977,7 @@ End Namespace") | |||
Public Async Function TestSimplifyTypeInScriptCode() As Task | |||
Await TestAsync( | |||
"Imports System | |||
[|System.Console.WriteLine(0)|]", | |||
[|System.Console|].WriteLine(0)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
old test span was incorrect (but the test still worked because of bugs in the analyzer). With the PR we still offer the fix but on the right span.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I in no way understand this (isn't it an instance call before and after, just on the wrong target after the casts were removed?) but I trust that you know what you're doing and the tests pass :D
Fixes #57767