Files
kotlin-fork/idea/testData/intentions/conventionNameCalls/replaceCallWithBinaryOperator/equalsCompareTo.kt
T
Mikhail Glukhikh fc13b25ca4 KT-11425: convert a.compareTo(b) to binary comparison if possible
(cherry picked from commit 7219904)
2016-08-01 12:23:19 +03:00

3 lines
59 B
Kotlin
Vendored

// IS_APPLICABLE: false
val x = 2.compareTo<caret>(2) == 0