ForEach to for-loop intention: smaller range + refactoring
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
fun foo() {
|
||||
val x = 1..4
|
||||
|
||||
<caret>x forEach { a -> a }
|
||||
x <caret>forEach { a -> a }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
fun foo() {
|
||||
val x = 1..4
|
||||
|
||||
<caret>x forEach { a -> a }
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
fun foo() {
|
||||
val x = 1..4
|
||||
|
||||
x.forEach<Int><caret>({ it })
|
||||
x.forEach<caret><Int>({ it })
|
||||
}
|
||||
Reference in New Issue
Block a user