summaryrefslogtreecommitdiff
path: root/test/files/neg/escapes.check
blob: 95299a4c75e8d5d6b634e35acb3c95d814d7965a (plain) (blame)
1
2
3
4
5
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 }
                                                ^
subst type t to T
one error found