summaryrefslogtreecommitdiff
path: root/test/files/neg/t4818.check
blob: a5e15e456b82057ea68da59aca1e645653dc0bfe (plain) (blame)
1
2
3
4
5
6
t4818.scala:4: error: type mismatch;
 found   : Int(5)
 required: Nothing
	def f(x: Any) = x match { case Fn(f) => f(5) }
                                                  ^
one error found