Skip to content

Conversation

ryanclarke
Copy link
Contributor

Codefix for diagnostic error 2352: "Conversion of type '{0}' to type '{1}' may be
a mistake because neither type sufficiently overlaps with the other. If this was
intentional, convert the expression to 'unknown' first."

Add codefix for both AsExpressions and TypeAssertions

Fixes #28067

Codefix for diagnostic error 2352: "Conversion of type '{0}' to type '{1}' may be
a mistake because neither type sufficiently overlaps with the other. If this was
intentional, convert the expression to 'unknown' first."

Add codefix for both AsExpressions and TypeAssertions
@ryanclarke
Copy link
Contributor Author

Thank you for your comments. The codefix is much better now.

@ghost ghost requested a review from DanielRosenwasser November 8, 2018 16:36
@DanielRosenwasser DanielRosenwasser merged commit 2585ccb into microsoft:master Nov 9, 2018
@DanielRosenwasser
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"If this was intentional, convert the expression to 'unknown' first" diagnostic should come with a codefix
2 participants