work around for KT-2356

This commit is contained in:
James Strachan
2012-07-03 14:29:40 +01:00
parent b9ffce68e4
commit 1fba1ade13
+2 -2
View File
@@ -35,9 +35,9 @@ class ListTest {
test fun withIndices() {
val data = arrayList("foo", "bar")
val withIndices = data.withIndices()
val wis = data.withIndices()
var index = 0
for (withIndex in withIndices) {
for (withIndex in wis) {
assertEquals(withIndex._1, index)
assertEquals(withIndex._2, data[index])
index++