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

bugfix: do not emit cases in pattern match as enum cases #5520

Merged
merged 1 commit into from Aug 8, 2023

Conversation

kasiaMarek
Copy link
Contributor

resolves: #5500

I also:

  1. added tests for toplevels with inner classes but w/o members
  2. added more kw after which we might have expressions
  3. skip correctly def/val/... bodies
  4. fixed scopes after enum

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM as far as I can see.

Mtags
.allToplevels(input, dialect)
.allToplevels(input, dialect, includeMembers = all)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.allToplevels(input, dialect, includeMembers = all)
.allToplevels(input, dialect, includeMembers = all || includeMembers)

?

@kasiaMarek kasiaMarek merged commit 0660721 into scalameta:main Aug 8, 2023
21 of 23 checks passed
@jkciesluk jkciesluk modified the milestone: Metals v1.0.1 Aug 24, 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.

match case indexed as enum case
3 participants