blob: 90c061d8332293540efe26697564c905dca7ede0 [file]
// WITH_STDLIB
// ISSUE: KT-71751
fun launch(x: () -> Unit) {
x()
}
fun box(): String {
var result: String = "fail"
val job = launch {
"test".let {
null
} ?: run { // this is not called if it is the last thing in the block
result = "OK"
}
}
return result
}