aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-01-31 19:03:51 +0100
committerMartin Odersky <odersky@gmail.com>2015-02-07 17:32:47 +0100
commita469fa849cdb2ed1310731de05cfa9ee5d286170 (patch)
tree3b4752f408a513a20ec94438de25d8518b038991 /tests/pending/pos
parentfb6d1f5f41ac07c7b0ce5105c410455c92945f19 (diff)
downloaddotty-a469fa849cdb2ed1310731de05cfa9ee5d286170.tar.gz
dotty-a469fa849cdb2ed1310731de05cfa9ee5d286170.tar.bz2
dotty-a469fa849cdb2ed1310731de05cfa9ee5d286170.zip
New failing test
As noticed by @retronym, Any and Object are not identified when matching Scala and Java methods. I believe this is because the Java method does not have the Java flag set. @olhotak can you take a look?
Diffstat (limited to 'tests/pending/pos')
-rw-r--r--tests/pending/pos/java-override/A.java3
-rw-r--r--tests/pending/pos/java-override/B.scala7
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 = ()
+}