Files
2021-10-25 00:14:19 +03:00

17 lines
323 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// EXPECTED_REACHABLE_NODES: 1288
class A(val x: String) {
@JsName("A_int") constructor(x: Int) : this("int $x")
}
fun test() = js("""
return main.A_int(23).x;
""")
fun box(): String {
val result = test()
assertEquals("int 23", result);
return "OK"
}