summaryrefslogtreecommitdiff
path: root/test/files/neg/t5189.check
blob: 4885de99cd9e0179fccc70bab1e9f56c7989312e (plain) (blame)
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