Files
kotlin-fork/idea/testData/inspectionsLocal/conventionNameCalls/replaceCallWithBinaryOperator/equalsFloatSmartCast.kt.after
T
kenji tomita 1aa9d5673b Do not highlight replacement of equals involving floating-point types
Two tests with smart casts do not work yet
Part of KT-25933
2018-10-10 15:02:43 +03:00

4 lines
126 B
Plaintext
Vendored

// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Float && b is Float && a == b