summaryrefslogtreecommitdiff
path: root/test/files/pos/bug2168.scala
blob: d7bfa9687b70e6c0845fea41b290217c890a18ce (plain) (blame)
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() }
}