Files
kotlin-fork/js/js.translator/testData/box/inline/dontInlineFunctionCall.kt
T
2018-09-12 09:49:25 +03:00

11 lines
217 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1284
package foo
inline fun block(p: () -> Int) = p()
fun createFunction(x: Int): () -> Int = { x }
fun box(): String {
assertEquals(23, block(createFunction(23)))
return "OK"
}