Renamed intention to more clear name

This commit is contained in:
Valentin Kipyatkov
2015-04-29 17:29:03 +03:00
parent 7d6145e105
commit 1b7ac6bb02
20 changed files with 48 additions and 50 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.InfixCallToOrdinaryIntention
@@ -0,0 +1,3 @@
fun foo(x: Int) {
(<caret>x shl 1).minus()
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
(x.shl(1)).minus()
}
@@ -0,0 +1,6 @@
trait Foo {
fun foo(f: (Int) -> Unit)
}
fun foo(x: Foo) {
<caret>x foo { it * 2 }
}
@@ -0,0 +1,6 @@
trait Foo {
fun foo(f: (Int) -> Unit)
}
fun foo(x: Foo) {
x.foo { it * 2 }
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun foo(x: String) {
<caret>x == x
}
@@ -0,0 +1,3 @@
fun foo(x: String) {
<caret>x!! compareTo "1"
}
@@ -0,0 +1,3 @@
fun foo(x: String) {
x!!.compareTo("1")
}
@@ -0,0 +1,3 @@
fun foo(x: String) {
<caret>x plus ("1" + "2")
}
@@ -0,0 +1,3 @@
fun foo(x: String) {
x.plus("1" + "2")
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
<caret>x compareTo 1
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
x.compareTo(1)
}