aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i827.scala
blob: 182ffe0b178324d426d57e0698f73824d5d3b561 (plain) (tree)
1
2
3
4
5
6
7

                       
                                                                                                                                             


 
                                                                      
trait A { trait Inner }
trait B { self: A =>
  trait Inner extends self.Inner // error: cannot merge trait Inner in trait A with trait Inner in trait B as members of type (A & B)(B.this)
}


class C extends C // error: cyclic inheritance: class C extends itself