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