aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t2168.scala
blob: 21afb239a09412fd7eea153475472d0198b1b331 (plain) (tree)
1
2
3
4



                                                                 
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() }
}