Files
kotlin-fork/idea/testData/inspectionsLocal/conventionNameCalls/replaceCallWithBinaryOperator/equalsDoubleSmartCast.kt
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
140 B
Kotlin
Vendored

// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Double && b is Double && a.<caret>equals(b)