summaryrefslogblamecommitdiff
path: root/test/files/neg/t5189.scala
blob: 19e8e74667e0e89e323ea835132ef9f2793d87b2 (plain) (tree)
1
2
3
4
5




                                                              
class TestNeg1 {
  case class Foo[T, U](f: T => U)
  def f(x: Any): Any => Any = x match { case Foo(bar) => bar }
  // uh-oh, Any => Any should be Nothing => Any.
}