Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/OverrideWithJava.kt
T

24 lines
338 B
Kotlin
Vendored

// FILE: A.java
public class A {
public A foo() {
return this;
}
public A bar() {
return this;
}
}
// FILE: test.kt
class B : A() {
override fun foo(): B = this
fun bar(): B = this // Here we should have "missing override" but no ambiguity
fun test() {
foo()
bar()
}
}