Further code improvements during review
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
fun main() {
|
||||
val x = 1..4
|
||||
|
||||
<caret>x.reverse().forEach { it }
|
||||
x.reverse().forEach<caret> { it }
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
fun foo() {
|
||||
val x = 1..4
|
||||
|
||||
<caret>x.forEach({ y -> y })
|
||||
x.<caret>forEach({ y -> y })
|
||||
}
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
fun foo() {
|
||||
val x = 1..4
|
||||
|
||||
<caret>x.forEach { it }
|
||||
x.<caret>forEach { it }
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun main() {
|
||||
<caret>(1 rangeTo 2).forEach { x -> x }
|
||||
(1 rangeTo 2).<caret>forEach { x -> x }
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
fun foo() {
|
||||
val x = 1..4
|
||||
|
||||
<caret>x.forEach { it.equals(1) }
|
||||
x.forEach<caret> { it.equals(1) }
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
fun foo() {
|
||||
val x = 1..4
|
||||
|
||||
<caret>x.forEach<Int>({ it })
|
||||
x.forEach<Int><caret>({ it })
|
||||
}
|
||||
Reference in New Issue
Block a user