summaryrefslogblamecommitdiff
path: root/test/files/neg/t4818.check
blob: 8a2c024b307bb04ade4b0c916b81e3fd3f5cdc98 (plain) (tree)
1
2
3
4
5
6

                                    
            


                                                      
t4818.scala:4: error: type mismatch;
 found   : Int(5)
 required: A
	def f(x: Any) = x match { case Fn(f) => f(5) }
                                                  ^
one error found