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

19 lines
322 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1109
// MODULE: lib
// FILE: lib1.kt
inline fun foo() = "OK"
inline fun bar(x: String) = "($x)"
// MODULE: main(lib)
// FILE: main.kt
// CHECK_NOT_CALLED: foo
// CHECK_NOT_CALLED: bar
fun box(): String {
if (prop != "(OK)") return "fail: $prop"
return "OK"
}
val prop = bar(foo())