Fix ReplaceWithOperatorAssignmentIntention in some cases

#KT-7831 Fixed
This commit is contained in:
Pavel V. Talanov
2015-06-01 15:36:54 +03:00
parent 1334f0352b
commit d531641459
5 changed files with 30 additions and 8 deletions
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
fun foo() {
var x = 0
x = x / 1 + 1
x =<caret> x / 1 + 1
}
@@ -2,5 +2,5 @@
fun foo() {
var x = 0
val y = 0
x = y / x + 0
x =<caret> y / x + 0
}
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
fun foo() {
var x = 0
x =<caret> x - 1 - 1
}