MoveLambdaOutsideParentheses: intention -> inspection #KT-21413 Fixed

This commit is contained in:
kenji tomita
2018-04-06 15:37:36 +03:00
committed by Mikhail Glukhikh
parent 83573ed517
commit decf9939fe
47 changed files with 193 additions and 225 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.MoveLambdaOutsideParenthesesInspection
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
fun foo() {
bar() <caret>{ it }
}
@@ -1,5 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
fun <T> doSomething(a: T) {}
fun foo(x: Int) {
@@ -1,5 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
fun <T> doSomething(a: T) {}
fun foo(x: Int) {
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
fun foo() {
bar(<caret>{ it }) {it}
}
@@ -3,7 +3,7 @@ fun foo() {
bar(2, {
val x = 3
it * x
})<caret>
<caret>})
}
fun bar(a: Int, b: (Int) -> Int) {
@@ -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