Files
kotlin-fork/compiler/testData/codegen/box/signatureAnnotations/defaultWithKotlinBase.kt
T
Denis Zharkov 4c9a4548f2 FIR: Fix overrides binding for Java inheritor
`overriddenMembers` contract requires original (non-enhanced) function
See other usages

Ignored tests have been working accidentally

^KT-43289 Open
2020-11-16 15:50:39 +03:00

24 lines
326 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// FILE: A.kt
open class A {
open fun x(x: Int = foo()) = x
private fun foo() = 42
}
// FILE: B.java
public class B extends A {
public int x(int i) {
return i + 1;
}
}
// FILE: box.kt
fun box(): String {
if (B().x() != 43) {
return "FAIL"
}
return "OK"
}