summaryrefslogblamecommitdiff
path: root/test/files/neg/t2144.check
blob: 670e188c2a68747d2d2b0e6d775dfadc6502fe28 (plain) (tree)
1
2
3
4

                                                                                                                               
                                    
               
t2144.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