9137e68d4e
This introduces the following IR built-in functions required for proper
implementation of the number comparisons:
- ieee754Equals(T, T): Boolean,
for each T in {Float?, Double?}
- less(T, T): Boolean
lessOrEqual(T, T): Boolean
greater(T, T): Boolean
greaterOrEqual(T, T): Boolean
for each T in {Int, Long, Float, Double}
2 lines
52 B
Kotlin
Vendored
2 lines
52 B
Kotlin
Vendored
fun test(x: Any?, y: Double) =
|
|
x is Int && x < y |