e0ced7cbcf
When merging Boxed value and something else just return MIXED_VALUE
11 lines
161 B
Kotlin
11 lines
161 B
Kotlin
fun box() : String {
|
|
val s = "notA"
|
|
val id = when (s) {
|
|
"a" -> 1
|
|
else -> null
|
|
}
|
|
|
|
if (id == null) return "OK"
|
|
return "fail"
|
|
}
|