aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/selftypes.scala
blob: 5180419d11b4131703930d003afd3f29d9b78408 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
object selftypes {

  trait A { self: AB =>

    type AA = List[this.BX]

    class AX

  }

  trait B { self: AB =>

    type BB = AA

    class BX
  }

  class AB extends A with B

}