Revert "Replace with ordinary assignment: do not suggest when operator is augmented assignment operator function"

This reverts commit 73e319ca
This commit is contained in:
Yan Zhulanow
2020-10-24 00:21:03 +09:00
parent 7fccd0153b
commit 383190f25e
9 changed files with 7 additions and 65 deletions
@@ -1,7 +0,0 @@
// IS_APPLICABLE: false
operator fun Int.minusAssign(element: Int) {}
fun test() {
val x = 1
x <caret>-= 9
}
@@ -1,6 +0,0 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
fun main() {
val mutableList = mutableListOf(4, 5, 6, 7, 8)
mutableList <caret>+= 9
}
@@ -1,7 +0,0 @@
// IS_APPLICABLE: false
operator fun Int.plusAssign(element: Int) {}
fun test() {
val x = 1
x <caret>+= 9
}
@@ -1,8 +0,0 @@
class Foo {
var x: Int = 1
}
fun main() {
val foo = Foo()
foo.x <caret>+= 1
}
@@ -1,8 +0,0 @@
class Foo {
var x: Int = 1
}
fun main() {
val foo = Foo()
foo.x = foo.x + 1
}