Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt
T
2018-06-28 12:26:41 +02:00

30 lines
382 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
inline fun inlineCall(p: () -> Unit) {
p()
}
// FILE: 2.kt
import test.*
fun box(): String {
var gene = "g1"
inlineCall {
val value = 10.0
inlineCall {
{
value
gene = "OK"
}()
}
}
return gene
}