Boxing values merge fix. #KT-5588 Fixed
When merging Boxed value and something else just return MIXED_VALUE
This commit is contained in:
committed by
Evgeny Gerashchenko
parent
81f7ace128
commit
e0ced7cbcf
@@ -0,0 +1,10 @@
|
||||
fun box() : String {
|
||||
val s = "notA"
|
||||
val id = when (s) {
|
||||
"a" -> 1
|
||||
else -> null
|
||||
}
|
||||
|
||||
if (id == null) return "OK"
|
||||
return "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user