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

10 lines
190 B
Kotlin
Vendored

// See also: KT-3743
fun foo(arg: Boolean?): String {
// Must be exhaustive
return when(arg) {
true -> "truth"
false -> "falsehood"
null -> "unknown"
}
}