Files
kotlin-fork/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.1.kt
T
2015-04-13 16:11:21 +03:00

23 lines
368 B
Kotlin
Vendored

//NO_CHECK_LAMBDA_INLINING
import test.*
fun test1(d: Data): Int {
val input = Input(d)
var result = 10
with(input) {
fun localFun() {
result = input.d.value
}
localFun()
}
return result
}
fun box(): String {
val result = test1(Data(11))
if (result != 11) return "test1: ${result}"
return "OK"
}