Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (7 sloc) 275 Bytes
package a { class C1(private[a] val v0: String) }
package b { class C2(v1: String) extends a.C1(v1) { def foo = v1 } }
object Test extends App {
new b.C2("x")
val c2Fields = classOf[b.C2].getDeclaredFields
assert(c2Fields.size == 1, c2Fields.map(_.getName).toList)
}
Jump to Line
Something went wrong with that request. Please try again.