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

Fix overrides generation for "naked" single case unions #530

Conversation

dawedawe
Copy link
Contributor

Single case unions like "type U = C" are interpreted as ITypeAbbreviationRepresentation.
So this PR adds the needed code to add a | in front and to fix the indentation.

…AbbreviationRepresentation

Add the needed code to add a bar and fix their indentation
… IUnionRepresentation node. Use a Navigator.Set* method and mutate the context.Anchor if needed.
- remove cast to IUnionRepresentation
- add test case for type U = ``A B``
Copy link
Collaborator

@auduchinok auduchinok left a comment

Choose a reason for hiding this comment

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

Thanks!

@auduchinok auduchinok merged commit 75bdd7c into JetBrains:net232 May 30, 2023
@dawedawe dawedawe deleted the fix_override_gen_for_naked_singlecaseunions branch May 30, 2023 09:24
DedSec256 pushed a commit that referenced this pull request Jun 6, 2023
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.

2 participants