InfixCallToOrdinaryIntention - smaller range + minor code improvements

This commit is contained in:
Valentin Kipyatkov
2015-04-29 17:37:01 +03:00
parent 1b7ac6bb02
commit 9dd67cfc4d
7 changed files with 21 additions and 19 deletions
@@ -1,3 +1,3 @@
fun foo(x: Int) {
(<caret>x shl 1).minus()
(x <caret>shl 1).minus()
}
@@ -2,5 +2,5 @@ trait Foo {
fun foo(f: (Int) -> Unit)
}
fun foo(x: Foo) {
<caret>x foo { it * 2 }
x <caret>foo { it * 2 }
}
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
fun foo(x: String) {
<caret>x == x
x <caret>== x
}
@@ -1,3 +1,3 @@
fun foo(x: String) {
<caret>x!! compareTo "1"
x!! <caret>compareTo "1"
}
@@ -1,3 +1,3 @@
fun foo(x: String) {
<caret>x plus ("1" + "2")
x plus<caret> ("1" + "2")
}
@@ -1,3 +1,3 @@
fun foo(x: Int) {
<caret>x compareTo 1
x <caret>compareTo 1
}