Fix tests: "infix modifier required" and "operator modifier required" errors

This commit is contained in:
Yan Zhulanow
2015-11-26 15:56:56 +03:00
parent a3ff3ffc45
commit 9d1af5a17e
635 changed files with 1283 additions and 1617 deletions
@@ -2,5 +2,5 @@
fun foo() {
val x = 1..4
x <caret>forEach { a -> a }
x.<caret>forEach { a -> a }
}
@@ -3,5 +3,5 @@
fun foo() {
val x = 1..4
<caret>x forEach { a -> a }
<caret>x.forEach { a -> a }
}
@@ -1,4 +1,7 @@
// WITH_RUNTIME
infix fun Int.upTo(other: Int) = this.rangeTo(other)
fun main() {
(1 rangeTo 2).<caret>forEach { x -> x }
(1 upTo 2).<caret>forEach { x -> x }
}
@@ -1,6 +1,9 @@
// WITH_RUNTIME
infix fun Int.upTo(other: Int) = this.rangeTo(other)
fun main() {
for (x in 1 rangeTo 2) {
for (x in 1 upTo 2) {
x
}
}