SwapBinaryExpression: implementation cleaned up, tests renamed
#KT-4868 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun main() {
|
||||
var mutablevar = 20
|
||||
mutablevar = <caret>10
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun main() {
|
||||
var mutablevar = 20
|
||||
mutablevar = <caret>10
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (a ==<caret> b) {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (a ===<caret> b) {}
|
||||
}
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (a ==<caret> b) {}
|
||||
if (b === a) {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (a identityEquals<caret> b) {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (b identityEquals a) {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (<caret>b !== a) {}
|
||||
}
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (<caret>a !== b) {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun test(): Int {
|
||||
return 1 <caret>+ 2 - 3
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun test(): Int {
|
||||
return 2 + 1 - 3
|
||||
}
|
||||
Reference in New Issue
Block a user