aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-10 12:15:54 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-10 12:16:04 +0100
commita8c2b0556db56ac85de3f2a078e169f7e4a1671a (patch)
tree74038cd3fab0729fd139cd1516db852ac2f74dfb /tests
parentff8731041a522b73fde6bddd2d7077d19d35b6b0 (diff)
downloaddotty-a8c2b0556db56ac85de3f2a078e169f7e4a1671a.tar.gz
dotty-a8c2b0556db56ac85de3f2a078e169f7e4a1671a.tar.bz2
dotty-a8c2b0556db56ac85de3f2a078e169f7e4a1671a.zip
Pickle/unpickle SuperAccessor names
Needed to restore the SuperAccessor flag in separate compilation. Fixes #1144.
Diffstat (limited to 'tests')
-rw-r--r--tests/run/i1144/AB_1.scala6
-rw-r--r--tests/run/i1144/C_2.scala3
2 files changed, 9 insertions, 0 deletions
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)
+}