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

7 lines
99 B
Kotlin
Vendored

fun foo(x: Int) {
val y: Unit = when (x) {
2 -> {}
3 -> {}
}
return y
}