Files
kotlin-fork/js/js.translator/testData/box/jsName/privateMethod.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
267 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1122
package foo
object A {
@JsName("js_f") private fun f(x: Int) = "f($x)"
}
fun test() = js("""
return JS_TESTS.foo.A.js_f(23);
""")
fun box(): String {
val result = test()
assertEquals("f(23)", result);
return "OK"
}