diff options
Diffstat (limited to 'test/files/run/t1430')
-rw-r--r-- | test/files/run/t1430/Bar_1.java | 8 | ||||
-rw-r--r-- | test/files/run/t1430/Test_2.scala | 16 |
2 files changed, 24 insertions, 0 deletions
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)) + } +} |