Files
kotlin-fork/backend.native/tests/codegen/inline/inline6.kt
T
2017-10-20 18:25:05 +03:00

22 lines
295 B
Kotlin

package codegen.inline.inline6
import kotlin.test.*
@Suppress("NOTHING_TO_INLINE")
inline fun foo(body: () -> Unit) {
println("hello1")
body()
println("hello4")
}
fun bar() {
foo {
println("hello2")
println("hello3")
}
}
@Test fun runTest() {
bar()
}