Files
kotlin-fork/js/js.translator/testData/box/jsName/secondaryConstructor.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

16 lines
289 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1120
package foo
class A(val x: String) {
@JsName("A_int") constructor(x: Int) : this("int $x")
}
fun test() = js("""
return JS_TESTS.foo.A_int(23).x;
""")
fun box(): String {
val result = test()
assertEquals("int 23", result);
return "OK"
}