MoveLambdaOutsideParentheses: intention -> inspection #KT-21413 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
83573ed517
commit
decf9939fe
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.MoveLambdaOutsideParenthesesInspection
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
// PROBLEM: none
|
||||
fun foo() {
|
||||
bar() <caret>{ it }
|
||||
}
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
// PROBLEM: none
|
||||
fun <T> doSomething(a: T) {}
|
||||
|
||||
fun foo(x: Int) {
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
// PROBLEM: none
|
||||
fun <T> doSomething(a: T) {}
|
||||
|
||||
fun foo(x: Int) {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
// PROBLEM: none
|
||||
fun foo() {
|
||||
bar(<caret>{ it }) {it}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
// PROBLEM: none
|
||||
fun foo() {
|
||||
bar(<caret>{ it })
|
||||
}
|
||||
+1
-1
@@ -3,7 +3,7 @@ fun foo() {
|
||||
bar(2, {
|
||||
val x = 3
|
||||
it * x
|
||||
})<caret>
|
||||
<caret>})
|
||||
}
|
||||
|
||||
fun bar(a: Int, b: (Int) -> Int) {
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar(3, 2, 1, { it }<caret>)
|
||||
bar(3, 2, 1, { it <caret>})
|
||||
}
|
||||
|
||||
fun bar(name1: Int, name2: Int, name3: Int, name4: (Int) -> Int) : Int {
|
||||
@@ -1 +0,0 @@
|
||||
org.jetbrains.kotlin.idea.intentions.MoveLambdaOutsideParenthesesIntention
|
||||
Reference in New Issue
Block a user