aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/avoid.scala
blob: 51471feaae65ec29bebd6841eb995e066a18b794 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                         
abstract class C {
  def y: Any
}

object test {
  val x = new C{
    def y: String = "abc"
  }
  val z: String = x.y
}