summaryrefslogtreecommitdiff
path: root/test/files/neg/t1503.scala
blob: 9877f99d0a1524c8b7bf942a18c86a4252c08ba9 (plain) (blame)
1
2
3
4
5
6
7
8
object Whatever {
  override def equals(x: Any) = true
}

class Test {
  // when left to its own devices, and not under -Xfuture, the return type is Whatever.type
  def matchWhateverCCE(x: Any) = x match { case n @ Whatever => n }
}