Skip to content

Conversation

@auduchinok
Copy link
Member

@auduchinok auduchinok commented Apr 11, 2023

Recover on various cases of missing union case names or representations:

type U =
    |
type U =
    | of int
type U =
    A of
type U =
    of int

@auduchinok auduchinok requested a review from a team as a code owner April 11, 2023 13:37
@auduchinok auduchinok force-pushed the parser-unionCase-name branch 2 times, most recently from 277bacf to 160d7bc Compare April 12, 2023 10:18
@auduchinok auduchinok closed this Apr 12, 2023
@auduchinok auduchinok reopened this Apr 12, 2023
@auduchinok auduchinok force-pushed the parser-unionCase-name branch 2 times, most recently from 63a6e47 to 5f3d6a1 Compare April 12, 2023 15:56
@auduchinok
Copy link
Member Author

It's ready.

@vzarytovskii vzarytovskii enabled auto-merge (squash) April 12, 2023 16:53
Copy link
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.

I quite like the parse tree mechanism to show the errors. But I would also like to see the changes visible to the user of the compiler or fsi. Does that make sense?

auto-merge was automatically disabled April 13, 2023 09:28

Head branch was pushed to by a user without write access

@auduchinok auduchinok force-pushed the parser-unionCase-name branch from 7dac632 to e6c5728 Compare April 13, 2023 09:58
@auduchinok auduchinok force-pushed the parser-unionCase-name branch from e6c5728 to a0553a5 Compare April 13, 2023 17:01
@auduchinok auduchinok requested a review from KevinRansom April 14, 2023 07:15
@vzarytovskii
Copy link
Member

I quite like the parse tree mechanism to show the errors. But I would also like to see the changes visible to the user of the compiler or fsi. Does that make sense?

Yeah, actually just normal fsharp diagnostics tests would be great.

@auduchinok
Copy link
Member Author

auduchinok commented Apr 14, 2023

Yeah, actually just normal fsharp diagnostics tests would be great.

Yes, I've updated some of the tests in this PR. Plus, there are many new parser tests that show all the errors.

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