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 #12800: Clarify match type reduction error on empty scrutinee #13184

Merged
merged 2 commits into from
Aug 9, 2021

Conversation

OlivierBlanvillain
Copy link
Contributor

No description provided.

@@ -91,6 +98,9 @@ object MatchTypeTrace:
| matches none of the cases
|
| ${casesText(cases)}"""
case EmptyScrutinee(scrut) =>
i""" failed since selector $scrut
| is uninhabited."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we explain a bit what uninhabited means? Something like uninhabited (no instance of that type can be constructed)

@romanowski
Copy link
Contributor

I guess someone else should also take a look at this PR.

@nicolasstucki nicolasstucki merged commit 38b983c into scala:master Aug 9, 2021
@nicolasstucki nicolasstucki deleted the fix-12800 branch August 9, 2021 14:33
@Kordyjan Kordyjan added this to the 3.1.0 milestone Aug 2, 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.

4 participants