summaryrefslogtreecommitdiff
path: root/test/files/pos/t1210a.scala
blob: fbb0a611d6da5c30c8073709ac92be7f28a10bef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// both styles of abstraction should behave the same
// related to 1210 because that bug broke the OO version below
trait OO {  
  abstract class Test { self =>
    type T
  
    val v: Test {type T = self.T} = self.v.v
  }
}

trait FP {
  abstract class Test[T] {
    val v: Test[T] = v.v
  }
}