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

10 lines
183 B
Kotlin
Vendored

// FIR_IDENTICAL
// See also: KT-3743
fun foo(arg: Boolean): String {
// Must be exhaustive
return when(arg) {
2 == 2 -> "truth"
2 == 1 -> "falsehood"
}
}