Skip to content
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

Add codefix for 'convert to unknown' diagnostic #28281

Merged
merged 3 commits into from
Nov 9, 2018
Merged

Add codefix for 'convert to unknown' diagnostic #28281

merged 3 commits into from
Nov 9, 2018

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