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(): Float {
var f = 2.0f
if (f > 0.0f) {
f++
}
f++
return f
}
fun box() = if (foo() > 3.5f) "OK" else "Fail"