Files
kotlin-fork/compiler/testData/codegen/box/constants/comparisonFalse.kt
T

17 lines
338 B
Kotlin
Vendored

// 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"
}