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 ChangeToUpcast code fix #10463

Merged
merged 4 commits into from
Nov 18, 2020
Merged

Add ChangeToUpcast code fix #10463

merged 4 commits into from
Nov 18, 2020

Conversation

cartermp
Copy link
Contributor

Operator:

image

Keyword:

image

Surfacing the improved message from #1127 into the code fixer, basically.

@cartermp
Copy link
Contributor Author

This is ready for review

Copy link
Member

@KevinRansom KevinRansom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cartermp, any chance of a test case?

@cartermp
Copy link
Contributor Author

There's no test harness for these

@cartermp
Copy link
Contributor Author

@KevinRansom testing might be possible here, but it might get complicated. Would needs to create a mocking system to verify that certain things trigger. A different approach would be just to factor the logic into a function. But there is so little logic here that it feels like overkill

@cartermp cartermp added this to the 16.9 milestone Nov 17, 2020
@cartermp cartermp merged commit 00f1c12 into dotnet:main Nov 18, 2020
@cartermp cartermp deleted the convert-to-upcast branch November 18, 2020 19:49
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
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.

3 participants