New ieee754 arithmetic, Fix for KT-14651: Floating point comparisons shall operate according to IEEE754
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
data class Test(val z1: Double, val z2: Double?)
|
||||
|
||||
fun box(): String {
|
||||
val x = Test(Double.NaN, Double.NaN)
|
||||
val y = Test(Double.NaN, Double.NaN)
|
||||
|
||||
return if (x == y) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user