Fix .put() for some stack values
#KT-3087 Fixed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user