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: match completions for type aliases scala 3 #5714

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

kasiaMarek
Copy link
Contributor

resolves: #5712

@kasiaMarek kasiaMarek added Scala 3 Generic ticket relating to Scala 3 presentation-compiler Something relating to the presentation compiler labels Oct 5, 2023
@@ -734,4 +734,52 @@ class CompletionMatchSuite extends BaseCompletionSuite {
filter = _.contains("exhaustive"),
)

checkEdit(
Copy link
Contributor

Choose a reason for hiding this comment

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

These cases already seem to work for Scala 2 (with Animal being sealed type hierarchy instead of enum). Would it be worth it to add unit tests for it as well (or maybe there are already some)? 🙂

Copy link
Member

@jkciesluk jkciesluk left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@kpodsiad kpodsiad left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

Copy link
Contributor

@filipwiech filipwiech left a comment

Choose a reason for hiding this comment

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

Thank you for adding Scala 2 tests. 👍

Copy link
Member

@jkciesluk jkciesluk left a comment

Choose a reason for hiding this comment

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

LGTM

tgodzik added a commit to scala/scala3 that referenced this pull request Oct 9, 2023
@kasiaMarek kasiaMarek merged commit 92e9732 into scalameta:main Oct 11, 2023
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing match completions for type wrapped in Id
4 participants