blob: 5d8a7e3bc3c47ca839b7ad0497b3298374050968 (
plain) (
tree)
|
|
class A {
private val x = List(1,2)
val elem = x.head
}
class B extends A {
val a: Int = elem
// Without `checkNoPrivateLeaks`, we get:
// found: B.this.x.scala$collection$immutable$List$$A(B.this.elem)
// required: Int
}
|