aboutsummaryrefslogblamecommitdiff
path: root/tests/patmat/t7631.scala
blob: 13e74183f08413fe2210fd69bc11841beda4aa2a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                 
sealed trait Test
case class TestA() extends Test
case class TestB() extends Test

object Tester {
  val input : Test = TestA()
  val num = 3
  val x = input match {
    case TestA() if num == 3 => 2
  }
}