summaryrefslogtreecommitdiff
path: root/test/files/run/t6793.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-04-08 18:28:24 -0700
committerPaul Phillips <paulp@improving.org>2013-04-08 23:08:07 -0700
commit7ee950fc3002632065e6f9e9b29e4c9be1138b88 (patch)
treea49d49bd4ebfdd8e79843b6b259a31bc0867598d /test/files/run/t6793.scala
parent967087811f9215d72651fc62e0977291efa2ab43 (diff)
parent53e031f55386d131b1aaa5fb93ee1a3ac6bce646 (diff)
downloadscala-7ee950fc3002632065e6f9e9b29e4c9be1138b88.tar.gz
scala-7ee950fc3002632065e6f9e9b29e4c9be1138b88.tar.bz2
scala-7ee950fc3002632065e6f9e9b29e4c9be1138b88.zip
Merge remote-tracking branch 'origin/2.10.x' into merge-2.10.x
* origin/2.10.x: if starr.use.released fetch Scala ${starr.version} for STARR assume build.release when maven.version.suffix is set make quick.done depend on quick.bin again SI-7321 Memory leak in specialize on multiple compiler runs. Take the N^2 out of the compiler's TreeSet. SI-6900 Fix tailrec for dependent method types Simplify interplay between Uncurry Info- and Tree-Transformers Refactor existential related code out of types. Add a cautionary comment to TreeSymSubstitutor. SI-6715 Shouldn't return "" from TermNames.originalName Backport #2289's TermNames.unexpandedName as TermNames.originalName SI-7147 Diagnostic for unexplained assertion in presentation compiler. SI-6793 Don't use super param accessors if inaccessible. Correct sorting example for Ordering in scaladoc Conflicts: bincompat-backward.whitelist.conf bincompat-forward.whitelist.conf build.xml src/compiler/scala/tools/nsc/transform/UnCurry.scala src/reflect/scala/reflect/internal/StdNames.scala
Diffstat (limited to 'test/files/run/t6793.scala')
-rw-r--r--test/files/run/t6793.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t6793.scala b/test/files/run/t6793.scala
new file mode 100644
index 0000000000..0b1f1619af
--- /dev/null
+++ b/test/files/run/t6793.scala
@@ -0,0 +1,9 @@
+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)
+}