summaryrefslogtreecommitdiff
path: root/test/files/run/t8803.check
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2014-08-20 13:17:16 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2014-08-20 13:41:01 +0200
commitf324ca5e14d29f8b4f6f7bbacc1c17f4233cd260 (patch)
treec735c3f233ddadb79b7760a443b29697e2af3bec /test/files/run/t8803.check
parent5e0880fe05fb65a8757721be7e5be6a3259c19a8 (diff)
downloadscala-f324ca5e14d29f8b4f6f7bbacc1c17f4233cd260.tar.gz
scala-f324ca5e14d29f8b4f6f7bbacc1c17f4233cd260.tar.bz2
scala-f324ca5e14d29f8b4f6f7bbacc1c17f4233cd260.zip
SI-8803 generate super accessor for super[A], if A is outer superclass
class C extends A with T { class I { C.super[T] C.super[A] } } A super call in a nested class of the form super[T] where T is a parent trait of the outer class doesn't need an accessor: mixin can directly re-route the call to the correct implementation class - it's statically known to be T$class. However, if a nested class accesses super[A] and A is the superclass of the outer class (not a trait), then we need a super accessor in the outer class. We need to add the mixin name to the super accessor name, otherwise it clashes with non-qualified super accessors.
Diffstat (limited to 'test/files/run/t8803.check')
-rw-r--r--test/files/run/t8803.check16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t8803.check b/test/files/run/t8803.check
new file mode 100644
index 0000000000..bd26a0fb14
--- /dev/null
+++ b/test/files/run/t8803.check
@@ -0,0 +1,16 @@
+a
+b
+b
+c
+a
+b
+b
+c
+a
+b
+b
+c
+a
+b
+b
+c