summaryrefslogblamecommitdiff
path: root/test/files/neg/bug2144.check
blob: ba3238dcf93ad117cde5c97885e1126c5608ddd2 (plain) (tree)
1
2
3
4



                                                                                                                                   
bug2144.scala:2: error: Parameter type in structural refinement may not refer to abstract type defined outside that same refinement
  def foo[A](a: A) = new { def bar(x: A): A = x }
                                      ^
one error found