diff options
Diffstat (limited to 'tests/pending/pos/java-override')
-rw-r--r-- | tests/pending/pos/java-override/A.java | 3 | ||||
-rw-r--r-- | tests/pending/pos/java-override/B.scala | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/pending/pos/java-override/A.java b/tests/pending/pos/java-override/A.java new file mode 100644 index 000000000..0d7f453e8 --- /dev/null +++ b/tests/pending/pos/java-override/A.java @@ -0,0 +1,3 @@ +public interface A { + void o(Object o); +} diff --git a/tests/pending/pos/java-override/B.scala b/tests/pending/pos/java-override/B.scala new file mode 100644 index 000000000..cb4addbcc --- /dev/null +++ b/tests/pending/pos/java-override/B.scala @@ -0,0 +1,7 @@ +//trait T { def t(o: Object): Unit } + +class B extends A /*with T*/ { + override def o(o: Any): Unit = () + + //override def t(o: AnyRef): Unit = () +} |