Files
kotlin-fork/compiler/testData/ir/irText/expressions/floatingPointComparisons/eqeqRhsConditionPossiblyAffectingLhs.kt.txt
T
2020-11-26 00:14:55 +03:00

8 lines
160 B
Plaintext
Vendored

fun test(x: Any): Boolean {
return EQEQ(arg0 = x, arg1 = when {
x !is Double -> CHECK_NOT_NULL<Nothing>(arg0 = null)
else -> x /*as Double */
})
}