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:
committed by
Mikhail Glukhikh
parent
48619a49ed
commit
d583c1be58
+4
@@ -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)
|
||||
+4
@@ -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
|
||||
+4
@@ -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)
|
||||
+4
@@ -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
|
||||
Reference in New Issue
Block a user