summaryrefslogblamecommitdiff
path: root/test/files/neg/escapes.check
blob: 3c4473e6b658e58688bb625b9d22d9e0fc4963a9 (plain) (tree)
1
2
3
4
                                                                           
                                                       
                                                 
               
escapes.scala:2: error: type t escapes its defining scope as part of type t
  def f(x: Any) = x match { case y: Cell[t] => y.elem }
                                                ^
one error found