d0134f2c64
If the result of 'when' is not used in an expression, this 'when' expression has type 'Unit' despite of whatever FE has inferred.
8 lines
73 B
Kotlin
Vendored
8 lines
73 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun foo(x: Int) {
|
|
when (x) {
|
|
0 -> 0
|
|
}
|
|
}
|