aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t5162.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t5162.scala')
-rw-r--r--tests/run/t5162.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/run/t5162.scala b/tests/run/t5162.scala
new file mode 100644
index 000000000..e4ad9ff8d
--- /dev/null
+++ b/tests/run/t5162.scala
@@ -0,0 +1,19 @@
+// In run, rather than pos, to check for problems like SI-4283
+object O1 {
+ private[O1] class Base {
+ def foo: Int = 0
+ }
+ class Mediator extends Base
+}
+
+object O2 {
+ class Derived extends O1.Mediator {
+ override def foo: Int = super.foo
+ }
+}
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ new O2.Derived().foo
+ }
+}