Fix false positive in +0.0 == -0.0 comparison simplification (KT-17735)

This commit is contained in:
Yan Zhulanow
2020-08-06 21:53:57 +09:00
parent 915dc6ce91
commit 9f192ba85e
7 changed files with 72 additions and 0 deletions
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
fun foo() {
-0.0 <caret>== +0.0
}
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
fun foo() {
+0.0f <caret>== -0.0f
}
@@ -0,0 +1,3 @@
fun foo() {
+0.0f <caret>== +0.0f
}
@@ -0,0 +1,3 @@
fun foo() {
true
}
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
fun foo(y: Boolean) {
0.0f <caret>=== -0.0f
}