Test for obsolete KT-16496

#KT-16496 Obsolete
This commit is contained in:
Mikhael Bogdanov
2019-01-03 13:22:03 +01:00
parent c968a362f6
commit cfc21ffa56
6 changed files with 51 additions and 0 deletions
@@ -0,0 +1,26 @@
// IGNORE_BACKEND: 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++
}
}