Fixed long / double / float value merge in OptimizationBasicInterpreter #KT-7401 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun foo(): Double {
|
||||
var d = 2.0
|
||||
if (d > 0.0) {
|
||||
d++
|
||||
}
|
||||
d++
|
||||
return d
|
||||
}
|
||||
|
||||
fun box() = if (foo() > 3.5) "OK" else "Fail"
|
||||
Reference in New Issue
Block a user