From 13caa498fb856ac1de3b851ddc413e36d728c3a6 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 8 Feb 2013 13:10:46 -0800 Subject: Fix for paramaccessor alias regression. A binary incompatibility with 2.10.0 revealed a bug I had introduced in c58647f5f2. --- test/files/run/t7106.check | 6 ++++++ test/files/run/t7106/Analyzed_1.scala | 14 ++++++++++++++ test/files/run/t7106/test.scala | 10 ++++++++++ 3 files changed, 30 insertions(+) create mode 100644 test/files/run/t7106.check create mode 100644 test/files/run/t7106/Analyzed_1.scala create mode 100644 test/files/run/t7106/test.scala (limited to 'test/files/run') diff --git a/test/files/run/t7106.check b/test/files/run/t7106.check new file mode 100644 index 0000000000..9a4bb430fd --- /dev/null +++ b/test/files/run/t7106.check @@ -0,0 +1,6 @@ +[ok] q1 I private final +[ok] q3 I private final +[ok] (III)V public +[ok] bippy1 ()I public +[ok] bippy2 ()I public +[ok] bippy3 ()I public diff --git a/test/files/run/t7106/Analyzed_1.scala b/test/files/run/t7106/Analyzed_1.scala new file mode 100644 index 0000000000..a2ddebceed --- /dev/null +++ b/test/files/run/t7106/Analyzed_1.scala @@ -0,0 +1,14 @@ + +abstract class Base0 { def p2: Int } +class Base(p1: Int, override val p2: Int) extends Base0 + +abstract class Sub1(q1: Int, q2: Int, q3: Int) extends Base(q1, q2) { + def bippy1 = q1 + def bippy2 = q2 + def bippy3 = q3 +} +abstract class Sub2(q1: Int, q2: Int, q3: Int) extends Base(q1, q2) { + def bippy1 = q1 + def bippy2 = p2 + def bippy3 = q3 +} diff --git a/test/files/run/t7106/test.scala b/test/files/run/t7106/test.scala new file mode 100644 index 0000000000..3584a272db --- /dev/null +++ b/test/files/run/t7106/test.scala @@ -0,0 +1,10 @@ +import scala.tools.partest.BytecodeTest + +object Test extends BytecodeTest { + def show { + val node1 = loadClassNode("Sub1") + val node2 = loadClassNode("Sub2") + + sameMethodAndFieldSignatures(node1, node2) + } +} -- cgit v1.2.3