Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/arguments/ambiguityOnJavaOverride.kt
T
Dmitriy Novozhilov bf1a00c73a [FIR] Rework resolution of declaration statuses
There is introduced algorithm of resolution with jumps: before
  resolution of some class we resolve all status of members of its
  supertypes, so we can properly determine inherited visibility
  and modifiers
2020-10-21 11:53:10 +03:00

20 lines
241 B
Kotlin
Vendored

// FILE: A.java
public class A {
Object foo(String s) {
return null;
};
}
// FILE: main.kt
class B : A() {
override fun foo(s: String): Any? {
return null
}
}
fun test(b: B) {
b.<!HIDDEN!>foo<!>("")
}