summaryrefslogtreecommitdiff
path: root/test/files/run/t6793c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6793c.scala')
-rw-r--r--test/files/run/t6793c.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t6793c.scala b/test/files/run/t6793c.scala
new file mode 100644
index 0000000000..e28c7c81a1
--- /dev/null
+++ b/test/files/run/t6793c.scala
@@ -0,0 +1,11 @@
+package a {
+ class C1(private[a] val v0: String)
+ class C2(v1: String) extends a.C1(v1) { def foo = v1 }
+}
+
+object Test extends App {
+ new a.C2("x").foo
+
+ val c2Fields = classOf[a.C2].getDeclaredFields
+ assert(c2Fields.isEmpty, c2Fields.map(_.getName).toList)
+}