Further code improvements during review

This commit is contained in:
Valentin Kipyatkov
2015-04-16 19:06:44 +03:00
parent 1aa123dadb
commit 6421f48c07
17 changed files with 62 additions and 77 deletions
@@ -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 })
}
@@ -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 })
}