FIR checker: Enable ReplaceWithDotCallFix for UNNECESSARY_SAFE_CALL.
This commit is contained in:
committed by
Ilya Kirillov
parent
f1eeb72c01
commit
957f6ddafd
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user