Skip to content

Add ChangeToUpcast code fix#10463

Merged
cartermp merged 4 commits intodotnet:mainfrom
cartermp:convert-to-upcast
Nov 18, 2020
Merged

Add ChangeToUpcast code fix#10463
cartermp merged 4 commits intodotnet:mainfrom
cartermp:convert-to-upcast

Conversation

@cartermp
Copy link
Copy Markdown
Contributor

Operator:

image

Keyword:

image

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

@cartermp
Copy link
Copy Markdown
Contributor Author

This is ready for review

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor Author

There's no test harness for these

@cartermp
Copy link
Copy Markdown
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