Files
kotlin-fork/j2k/testData/fileOrElement/list/ForEach.kt
T
Alexander Udalov 3c859caf2b j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
2015-01-03 00:52:59 +03:00

15 lines
298 B
Kotlin
Vendored

// ERROR: Unresolved reference: LinkedList
import java.util.*
public class ForEach {
public fun test() {
val xs = ArrayList<Any>()
val ys = LinkedList<Any>()
for (x in xs) {
ys.add(x)
}
for (y in ys) {
xs.add(y)
}
}
}