Skip to content

fix #8956: add regression test #9128

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

Merged
merged 2 commits into from
Jun 8, 2020
Merged

Conversation

bishabosha
Copy link
Member

fix #8956

@bishabosha bishabosha requested a review from smarter June 8, 2020 13:32
i match {
case a:Numeric => println(s"numeric = $a")
case _ => println("categorical")
}
Copy link
Contributor

@liufengyun liufengyun Jun 8, 2020

Choose a reason for hiding this comment

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

It's better to add a check file for this to avoid regression.

Edited: -Xfatal-warnings

Copy link
Member Author

Choose a reason for hiding this comment

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

I've moved it to tests/pos-special/fatal-warnings/i8956.scala

@odersky odersky merged commit c2e1562 into scala:master Jun 8, 2020
@odersky odersky deleted the fix-#8956 branch June 8, 2020 16:04
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.

Inconsistent matching when using type alias of Union type
4 participants