Files
kotlin-fork/compiler/testData/diagnostics/tests/reassignment/when.fir.kt
T

10 lines
141 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_VALUE
fun foo(f: Boolean): Int {
val i: Int
when (f) {
true -> i = 1
}
i = 3
return i
}