Skip to content

Commit a469fa8

Browse files
committed
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?
1 parent fb6d1f5 commit a469fa8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public interface A {
2+
void o(Object o);
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//trait T { def t(o: Object): Unit }
2+
3+
class B extends A /*with T*/ {
4+
override def o(o: Any): Unit = ()
5+
6+
//override def t(o: AnyRef): Unit = ()
7+
}

0 commit comments

Comments
 (0)