summaryrefslogtreecommitdiff
path: root/test/files/pos/bug2168.scala
blob: 42224236db8a51164a40a439167f5f5fe15c2c7f (plain) (blame)
1
2
3
4
5
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() }
}