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

Add regression test for scala/bug#9220 #6192

Merged
merged 1 commit into from Nov 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions test/files/pos/t9220.flags
@@ -0,0 +1 @@
-Xfatal-warnings
14 changes: 14 additions & 0 deletions test/files/pos/t9220.scala
@@ -0,0 +1,14 @@
object Test {
trait Command
object Command {
sealed trait Execution extends Command
}

case class Buzz() extends Command.Execution
case class Door() extends Command.Execution

def foo(cmd: Command.Execution) = cmd match {
case x @ (_: Buzz) => ???
case x @ (_: Door) => ???
}
}