Fix .put() for some stack values

#KT-3087 Fixed
This commit is contained in:
Alexander Udalov
2012-11-26 15:37:29 +04:00
parent bc7f2fd09b
commit 8e740a3ee4
3 changed files with 33 additions and 23 deletions
@@ -0,0 +1,26 @@
fun putNumberCompareAsUnit() {
if (1 == 1) {
}
else if (1 == 1) {
}
}
fun putNumberCompareAsVoid() {
if (1 == 1) {
1 == 1
} else {
}
}
fun putInvertAsUnit(b: Boolean) {
if (1 == 1) {
} else if (!b) {
}
}
fun box(): String {
putNumberCompareAsUnit()
putNumberCompareAsVoid()
putInvertAsUnit(true)
return "OK"
}