FIR checker: Enable ReplaceWithDotCallFix for UNNECESSARY_SAFE_CALL.

This commit is contained in:
Mark Punzalan
2021-04-14 00:03:29 +00:00
committed by Ilya Kirillov
parent f1eeb72c01
commit 957f6ddafd
9 changed files with 57 additions and 16 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
// "Replace with dot call" "true"
fun foo(a: Any) {
a<caret>?.equals(0)
}
/* IGNORE_FIR */
}
@@ -1,6 +1,4 @@
// "Replace with dot call" "true"
fun foo(a: Any) {
a<caret>.equals(0)
}
/* IGNORE_FIR */
}
@@ -0,0 +1,4 @@
// "Replace with dot call" "true"
fun Any.foo() {
this<caret>?.equals(0)
}
@@ -1,7 +1,4 @@
// "Replace with dot call" "true"
fun foo(a: Any) {
when (a) {
.equals(0) => true
else => false
}
fun Any.foo() {
this.equals(0)
}