Files
kotlin-fork/compiler/testData/codegen/box/constants/comparisonFalse.kt
T
2019-11-19 11:00:09 +03:00

18 lines
368 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
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"
}