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

9 lines
168 B
Kotlin
Vendored

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