16 lines
298 B
Kotlin
Vendored
16 lines
298 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// EXPECTED_REACHABLE_NODES: 1288
|
|
|
|
class A(val x: String) {
|
|
@JsName("A_int") constructor(x: Int) : this("int $x")
|
|
}
|
|
|
|
fun test() = js("""
|
|
return JS_TESTS.A_int(23).x;
|
|
""")
|
|
|
|
fun box(): String {
|
|
val result = test()
|
|
assertEquals("int 23", result);
|
|
return "OK"
|
|
} |