summaryrefslogblamecommitdiff
path: root/test/files/pos/bug2168.scala
blob: 1cf73446a82df3949db8bbb7a79d4155d87bcb56 (plain) (tree)
1
2
3
4
5
6




                                                                 
 
object Test extends Application {
  def foo1(x: AnyRef) = x match { case x: Function0[_] => x() }
  def foo2(x: AnyRef) = x match { case x: Function0[Any] => x() }
}