Files
kotlin-fork/compiler/testData/codegen/bytecodeText/interfaces/addedInterfaceBridge.kt
T
Mark Punzalan 238cc7c257 [FIR] Enable BytecodeText tests for FIR.
143 out of 767 tests (18.6%) are currently failing.
2020-09-29 10:21:21 +03:00

21 lines
363 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface A<T> {
fun f(x: T): T
}
open class B {
open fun f(x: String): String = x
}
open class C : B(), A<String>
class D : C()
fun box(): String {
return (D() as A<String>).f("OK")
}
// class D should not have an additional bridge
// 1 public synthetic bridge f\(Ljava/lang/Object;\)Ljava/lang/Object;
// 1 bridge