summaryrefslogblamecommitdiff
path: root/test/files/neg/t4818.scala
blob: faae2292065dc71f707be83bd5992fa908f047a0 (plain) (tree)
1
2
3
4
5
6
7






                                                      
object Test {
	case class Fn[A, B](f: A => B)

	def f(x: Any) = x match { case Fn(f) => f(5) }

	Fn((x: String) => x)
}