Files
kotlin-fork/compiler/testData/codegen/boxInline/defaultValues/kt16496.kt
T
2019-09-06 09:19:57 +03:00

27 lines
375 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: 1.kt
package test
inline fun f(
wait: Int = 0,
action: (Int) -> Unit
): String {
var millis: Long = 1
try {
} catch (e: Throwable) {
millis = millis
}
return "OK"
}
// FILE: 2.kt
import test.*
fun box(): String {
var x = 0
return f {
x++
}
}