Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/inference/kt6242.fir.kt
T

12 lines
227 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_VARIABLE
inline fun<T> foo(block: () -> T):T = block()
fun baz() {
val x: String = foo {
val task: String? = null
if (task == null) {
return
} else task
}
}