aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t3150.scala
blob: 034703b5f7f001ab014bde4b1f050f3f86d340ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test {
  case object Bob { override def equals(other: Any) = true }
  def f(x: Any) = x match { case Bob => Bob }

  def main(args: Array[String]): Unit = {
    assert(f(Bob) eq Bob)
    assert(f(0) eq Bob)
    assert(f(Nil) eq Bob)
  }
}