Files
kotlin-fork/js/js.translator/testData/box/jsName/privateMethod.kt
T
2016-10-08 19:25:28 +03:00

15 lines
248 B
Kotlin
Vendored

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