Replace equals with == involving FP types: handle possible smart casts

This fixes two relevant tests with smart casts
#KT-25933 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-10-09 14:47:01 +03:00
parent 04cadf3f58
commit 6be65e7d1a
6 changed files with 67 additions and 5 deletions
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun <T> test(a: T, b: T) =
a is Double && b is Double && a.<caret>equals(b)
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun <T> test(a: T, b: T) =
a is Double && b is Double && a == b