Files
kotlin-fork/js/js.translator/testData/box/jsModule/importCountUmd.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

22 lines
442 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1113
// MODULE_KIND: UMD
// NO_JS_MODULE_SYSTEM
// FUNCTION_CALLED_TIMES: require count=3
@JsModule("lib")
@JsNonModule
external fun f(x: Int): String
@JsModule("lib")
@JsNonModule
external fun f(x: String): String
@JsModule("lib")
@JsNonModule
external fun g(x: Boolean): String
fun box(): String {
val result = f(23) + f("foo") + g(true)
if (result != "abc") return "fail: $result"
return "OK"
}