Boxing values merge fix. #KT-5588 Fixed

When merging Boxed value and something else just return MIXED_VALUE
This commit is contained in:
Denis Zharkov
2014-08-04 20:57:02 +04:00
committed by Evgeny Gerashchenko
parent 81f7ace128
commit e0ced7cbcf
4 changed files with 18 additions and 3 deletions
@@ -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"
}