summaryrefslogtreecommitdiff
path: root/test/files/pos/t2168.scala
blob: e3b24b6a722a0759451cfd67846b285eb83e8c69 (plain) (blame)
1
2
3
4
5
6
object Test extends App {
  def foo1(x: AnyRef) = x match { case x: Function0[_] => x() }
  def foo2(x: AnyRef) = x match { case x: Function0[Any] => x() }
}