Skip to content

Conversation

@DedSec256
Copy link
Contributor

Exceptions ErrorFromAddingTypeEquation and ErrorsFromAddingSubsumptionConstraint have expectedTy and actualTy fields, but when they are created, the corresponding data is passed in reverse order.
This PR fixes misleading naming in some sections of the code that lead to the creation of the aforementioned exceptions.

@DedSec256 DedSec256 requested a review from a team as a code owner August 8, 2023 19:47
@psfinaki
Copy link
Contributor

psfinaki commented Aug 9, 2023

@DedSec256 - that's valuable, thanks! Ping once you consider this ready, any testing to demo this would be great.

@DedSec256 DedSec256 changed the title Fix misleading naming in type checking logic [WIP] Fix misleading naming in type checking logic Aug 9, 2023
@DedSec256
Copy link
Contributor Author

@psfinaki, I think this PR is ready. At the moment, I am finishing with work on adding ExtendedData for diagnostics (fsharp/fslang-suggestions#1094), and plan to open a PR in the near future. The corresponding tests are written there, in particular, for these exceptions.

Some preview :)
image

@psfinaki
Copy link
Contributor

psfinaki commented Aug 9, 2023

Alright then - looking forward to the FS-1094 PR!

@vzarytovskii vzarytovskii merged commit 804090d into dotnet:main Aug 9, 2023
@DedSec256 DedSec256 deleted the ber.a/fixNaming branch August 9, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants