Changed usages of upto/downto in test to rangeTo and downTo, respectively.

#KT-2519 in progress
This commit is contained in:
Evgeny Gerashchenko
2012-08-07 22:07:14 +04:00
parent 662fdca034
commit a4031225d0
11 changed files with 52 additions and 52 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ public object Collections {
public fun <T> reverse(list: List<T>): Unit {
val size = list.size()
for (i in 0.upto(size / 2)) {
for (i in 0.rangeTo(size / 2)) {
val i2 = size - i
val tmp = list[i]
list[i] = list[i2]
+1 -1
View File
@@ -10,7 +10,7 @@ public inline fun <T> java.util.List<T>.equals(that: List<T>): Boolean {
val s1 = this.size()
val s2 = that.size()
if (s1 == s2) {
for (i in 0.upto(s1)) {
for (i in 0.rangeTo(s1)) {
val elem1 = this.get(i)
val elem2 = that.get(i)
if (elem1 != elem2) {