Skip to content

Check operations when doing type name simplification#58285

Merged
CyrusNajmabadi merged 7 commits intodotnet:mainfrom
CyrusNajmabadi:speculationOperation
Dec 14, 2021
Merged

Check operations when doing type name simplification#58285
CyrusNajmabadi merged 7 commits intodotnet:mainfrom
CyrusNajmabadi:speculationOperation

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Fixes #57767

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 12, 2021 00:19
@ghost ghost added the Area-IDE label Dec 12, 2021
Await TestAsync(
"Imports System
[|System.Console.WriteLine(0)|]",
[|System.Console|].WriteLine(0)",
Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Member

@davidwengier davidwengier left a 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

@CyrusNajmabadi CyrusNajmabadi merged commit 85f60db into dotnet:main Dec 14, 2021
@ghost ghost added this to the Next milestone Dec 14, 2021
@Cosifne Cosifne modified the milestones: Next, 17.1.P3 Jan 5, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the speculationOperation branch March 2, 2022 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Name can be simplified" code fix results in invalid code (build error)

3 participants