KT-769, KT-773 wrong compilation of when
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace w_range
|
||||
|
||||
fun box() : String {
|
||||
var i = 0
|
||||
when (i) {
|
||||
1 => i--
|
||||
else => { i = 2 }
|
||||
}
|
||||
System.out?.println(i)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user