summaryrefslogtreecommitdiff
path: root/test/files/pos/t2168.scala
blob: 845c5b736183f2dd8e1f0183c52fafdf36de8656 (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() }
}