summaryrefslogblamecommitdiff
path: root/test/files/neg/t5189.check
blob: 7762f465dc58a6301b9990a72417037c2062d969 (plain) (tree)
1
2
3
4
5
6





                                                              
t5189.scala:3: error: type mismatch;
 found   : Nothing => Any
 required: Any => Any
  def f(x: Any): Any => Any = x match { case Foo(bar) => bar }
                                                         ^
one error found