Isolated declarations quick fix results in redundant type arguments when the RHS is a new expression with explicit type arguments #59768
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
Acknowledgement
Comment
After generating and applying a quick-fix, the current resulting code is:
An ideal fix would remove the redundant type arguments in the RHS expression when adding the same type arguments to the suggested type annotation, resulting in something like:
The text was updated successfully, but these errors were encountered: