Files
kotlin-fork/compiler/testData/codegen/box/bridges/fakeOverrideThroughGenericSuperclass.kt
T
2021-10-02 06:14:35 +00:00

27 lines
447 B
Kotlin
Vendored

// !LANGUAGE: -AbstractClassMemberNotImplementedWithIntermediateAbstractClass
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
var result = "Fail"
interface A<T> {
fun f(x: T) {
result = x.toString()
}
}
abstract class B1<T> : A<T>
interface B2 {
fun f(x: String)
}
class C : B1<String>(), B2
fun box(): String {
(C() as B2).f("OK")
return result
}