Files
kotlin-fork/compiler/testData/codegen/box/constants/comparisonFalse.kt
T
Ivan Kylchik e981b1f958 [Native] Support evaluation of const intrinsics for K2
#KT-56023
#KT-55469 Fixed
2023-03-24 15:55:03 +00:00

16 lines
312 B
Kotlin
Vendored

// WITH_STDLIB
fun foo(): Array<Boolean> {
return arrayOf(
0.0 / 0 == 0.0 / 0,
0.0F > -0.0F,
0.0.equals(-0.0),
(0.0 / 0.0).equals(1.0 / 0.0)
)
}
fun box(): String {
if (foo().any { it == true })
return "fail: ${foo().contentDeepToString()}"
return "OK"
}