blob: e2cf4c43c3f17218203e9e1f03bc260d46c957b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// derived from test/files/pos/S5.scala
// compile with -uniqid to see a hint of the trouble
trait N {
// the symbol for self does not get rebound when synthesizing members in C
val self: N = ???
val n: self.type = self
}
abstract class M {
val self: N
val n: self.type
}
class C extends M with N
|