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

30 lines
435 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1122
// MODULE: lib
// FILE: lib.kt
package utils
public var LOG: String = ""
inline
public fun log(s: String): String {
LOG += s
return LOG
}
// MODULE: main(lib)
// FILE: main.kt
import utils.*
// CHECK_CONTAINS_NO_CALLS: test
internal fun test(s: String): String = log(s + ";")
fun box(): String {
assertEquals("a;", test("a"))
assertEquals("a;b;", test("b"))
return "OK"
}