Renamed intention to more clear name
This commit is contained in:
@@ -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")
|
||||
}
|
||||
+3
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user