"Move lambda argument out of parentheses" intention - smaller range
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun foo() {
|
||||
bar(<caret>) { it }
|
||||
bar() <caret>{ it }
|
||||
}
|
||||
|
||||
fun bar(b: (Int) -> Int) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<caret>(2, l@{ it })
|
||||
bar(2, <caret>l@{ it })
|
||||
}
|
||||
|
||||
fun bar(a: Int, b: (Int) -> Int) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<caret>(2, { it })
|
||||
bar(2, <caret>{ it })
|
||||
}
|
||||
|
||||
fun bar(a: Int, b: (Int) -> Int) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<caret>(2) { it }
|
||||
bar(2) { it }
|
||||
}
|
||||
|
||||
fun bar(a: Int, b: (Int) -> Int) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<caret>(a = 2, b = { it })
|
||||
bar(a = 2, b = {<caret> it })
|
||||
}
|
||||
|
||||
fun bar(a: Int, b: (Int) -> Int) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<caret>(a = 2) { it }
|
||||
bar(a = 2) { it }
|
||||
}
|
||||
|
||||
fun bar(a: Int, b: (Int) -> Int) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// ERROR: No value passed for parameter b
|
||||
// ERROR: Unresolved reference: it
|
||||
fun foo() {
|
||||
bar<caret>({ it })
|
||||
bar({ it <caret>})
|
||||
}
|
||||
|
||||
fun bar(a: Int, b: (Int) -> Int) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<caret>(2, {
|
||||
bar(2, {
|
||||
val x = 3
|
||||
it * x
|
||||
})
|
||||
})<caret>
|
||||
}
|
||||
|
||||
fun bar(a: Int, b: (Int) -> Int) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<caret>(name1 = 3, name2 = 2, name3 = 1, name4 = { it })
|
||||
bar(name1 = 3, name2 = 2, name3 = 1, <caret>name4 = { it })
|
||||
}
|
||||
|
||||
fun bar(name1: Int, name2: Int, name3: Int, name4: (Int) -> Int) : Int {
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<caret>(3, 2, 1, { it })
|
||||
bar(3, 2, 1, { it }<caret>)
|
||||
}
|
||||
|
||||
fun bar(name1: Int, name2: Int, name3: Int, name4: (Int) -> Int) : Int {
|
||||
Reference in New Issue
Block a user