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


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