summaryrefslogtreecommitdiff
path: root/test/files/neg/bug2144.check
blob: 989bddc21e024719ec9b29e3c9a267377994fda4 (plain) (blame)
1
2
3
4
bug2144.scala:2: error: Parameter type in structural refinement may not refer to an abstract type defined outside that refinement
  def foo[A](a: A) = new { def bar(x: A): A = x }
                               ^
one error found