Implement special desugaring for numeric comparisons in PSI2IR
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}
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun testD(x: Comparable<Double>, y: Comparable<Double>) = x is Double && y is Double && x < y
|
||||
|
||||
fun testF(x: Comparable<Float>, y: Comparable<Float>) = x is Float && y is Float && x < y
|
||||
Reference in New Issue
Block a user