Closed
Description
public class TestJava {
int foo;
int foo() {
return this.foo;
}
}
dotc TestJava.java
-- [E119] Duplicate Symbol Error: tests/allan/TestJava.java:3:6 ----------------
3 | int foo() {
| ^
|method foo in class TestJava is already defined as var foo: Int at line 2.
This is an issue when compiling mixed Scala/Java code bases