6fc0de39c2
This gives us more precise type information and can enable backend optimizations. This was motivated by when expressions not compiled to table switches in the JVM_IR backend. Fixed KT-36845.
8 lines
145 B
Plaintext
Vendored
8 lines
145 B
Plaintext
Vendored
fun test(x: Any?, y: Double): Boolean {
|
|
return when {
|
|
x is Int -> less(arg0 = x /*as Int */.toDouble(), arg1 = y)
|
|
else -> false
|
|
}
|
|
}
|
|
|