From a8c2b0556db56ac85de3f2a078e169f7e4a1671a Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 10 Mar 2016 12:15:54 +0100 Subject: Pickle/unpickle SuperAccessor names Needed to restore the SuperAccessor flag in separate compilation. Fixes #1144. --- tests/run/i1144/AB_1.scala | 6 ++++++ tests/run/i1144/C_2.scala | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 tests/run/i1144/AB_1.scala create mode 100644 tests/run/i1144/C_2.scala (limited to 'tests/run') diff --git a/tests/run/i1144/AB_1.scala b/tests/run/i1144/AB_1.scala new file mode 100644 index 000000000..ff37674db --- /dev/null +++ b/tests/run/i1144/AB_1.scala @@ -0,0 +1,6 @@ +trait A { + def x = 3 +} +trait B extends A { + override def x = super.x * 2 +} diff --git a/tests/run/i1144/C_2.scala b/tests/run/i1144/C_2.scala new file mode 100644 index 000000000..855bcec96 --- /dev/null +++ b/tests/run/i1144/C_2.scala @@ -0,0 +1,3 @@ +object Test extends B { + def main(args: Array[String]) = assert(x == 6, x) +} -- cgit v1.2.3