19 lines
362 B
Kotlin
Vendored
19 lines
362 B
Kotlin
Vendored
// EXPECTED_REACHABLE_NODES: 1295
|
|
|
|
open class A {
|
|
@JsName("js_f") open fun f(x: Int) = "A.f($x)"
|
|
}
|
|
|
|
class B : A() {
|
|
override fun f(x: Int) = "B.f($x)"
|
|
}
|
|
|
|
fun test(): dynamic {
|
|
return A().asDynamic().js_f(23) + ";" + B().asDynamic().js_f(42)
|
|
}
|
|
|
|
fun box(): String {
|
|
val result = test()
|
|
assertEquals("A.f(23);B.f(42)", result);
|
|
return "OK"
|
|
} |