c4aa6d01a9
Compile-time constants are taken into account. #KT-3743 Fixed.
9 lines
166 B
Kotlin
Vendored
9 lines
166 B
Kotlin
Vendored
// See also: KT-3743
|
|
fun foo(arg: Boolean): String {
|
|
// Must be exhaustive
|
|
return when(arg) {
|
|
2 == 2 -> "truth"
|
|
2 == 1 -> "falsehood"
|
|
}
|
|
}
|