Files
kotlin-fork/compiler/testData/codegen/boxInline/captureInlinable/1.kt
T
2014-03-03 15:43:35 +04:00

11 lines
223 B
Kotlin

import test.*
fun box(): String {
val result = doWork({11})
if (result != 11) return "test1: ${result}"
val result2 = doWork({12; result+1})
if (result2 != 12) return "test2: ${result2}"
return "OK"
}