summaryrefslogtreecommitdiff
path: root/test/files/pos/t9665.scala
blob: 1aa7a5d459f1624c4306363a69615bc883a2f100 (plain) (blame)
1
2
3
4
5
6
7
object | { def unapply(x: (Any, Any)) = Some(x) }

trait Test {
  def f() = (1,2) match { case 1 `|` 2 => }
  def g() = 2 match { case 1 | 2 => }
}