summaryrefslogtreecommitdiff
path: root/test/files/pos/t8044.scala
blob: 8259f06a8a0ec9ee8e92b909da75bf154af6b6c4 (plain) (blame)
1
2
3
4
5
6
7
trait T {
  def f = 42 match { case `x` @ _ => x }
  def g = 42 match { case `type` @ _ => `type` }
  def h = 42 match { case `type` : Int => `type` }
  def i = (null: Any) match { case _: Int | _: String => 17 }
}