aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t6793c.scala
blob: 1c01ca5393cd47e0257bd2390f8d679b19d30f12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package a {
  class C1(private[a] val v0: String)
  class C2(v1: String) extends a.C1(v1) { def foo = v1 }
}

object Test extends dotty.runtime.LegacyApp {
  new a.C2("x").foo

  val c2Fields = classOf[a.C2].getDeclaredFields
  assert(c2Fields.isEmpty, c2Fields.map(_.getName).toList)
}