Fixed long / double / float value merge in OptimizationBasicInterpreter #KT-7401 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-12-16 10:55:55 +03:00
parent 75089a3af8
commit f25f0db10e
5 changed files with 69 additions and 20 deletions
+10
View File
@@ -0,0 +1,10 @@
fun foo(): Long {
var n = 2L
if (n > 0L) {
n++
}
n++
return n
}
fun box() = if (foo() == 4L) "OK" else "Fail"