aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/i1723.scala
blob: 75f7cd95cba704c8ca83a26a1a3d01ddf7178238 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                    
class A {
  private val x: List[Int] = List(1)
  def foo = x.head // foo inferred type is this.x.scala$collection$immutable$List$$A
}

class B extends A {
  foo
}