Can be replaced with binary operator: do not suggest when receiver or argument is floating point type

#KT-28596 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-02-08 15:10:05 +09:00
committed by Mikhail Glukhikh
parent 48619a49ed
commit d583c1be58
7 changed files with 34 additions and 5 deletions
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Double && b is Int && a.<caret>equals(b)
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Double && b is Int && a == b
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Int && b is Double && a.<caret>equals(b)
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Int && b is Double && a == b