Files
kotlin-fork/idea/testData/inspectionsLocal/conventionNameCalls/replaceCallWithBinaryOperator/equalsFloatingPointLiteral2.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

3 lines
107 B
Kotlin
Vendored

// FIX: Replace total order equality with IEEE 754 equality
fun checkPi(x: Double) = 3.14.<caret>equals(x)