summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t1430.check1
-rw-r--r--test/files/run/t1430/Bar_1.java8
-rw-r--r--test/files/run/t1430/Test_2.scala16
3 files changed, 25 insertions, 0 deletions
diff --git a/test/files/run/t1430.check b/test/files/run/t1430.check
new file mode 100644
index 0000000000..a688182701
--- /dev/null
+++ b/test/files/run/t1430.check
@@ -0,0 +1 @@
+Baz
diff --git a/test/files/run/t1430/Bar_1.java b/test/files/run/t1430/Bar_1.java
new file mode 100644
index 0000000000..4db2eafcbd
--- /dev/null
+++ b/test/files/run/t1430/Bar_1.java
@@ -0,0 +1,8 @@
+package j;
+
+interface Foo {
+ public void foo();
+}
+public interface Bar_1 extends Foo {
+ public void bar();
+}
diff --git a/test/files/run/t1430/Test_2.scala b/test/files/run/t1430/Test_2.scala
new file mode 100644
index 0000000000..7af65de5cd
--- /dev/null
+++ b/test/files/run/t1430/Test_2.scala
@@ -0,0 +1,16 @@
+package s {
+ object Boop extends j.Bar_1 {
+ def foo() {}
+ def bar() {}
+ }
+ class Baz(x: j.Bar_1) {
+ x.foo
+ override def toString = "Baz"
+ }
+}
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ println(new s.Baz(s.Boop))
+ }
+}