72aa3d1465
- move some of boxWithStdlib tests under fullJdk/ directory, where they will be compiled against the full JDK - introduce FULL_JDK in-text directive for the reflection test as only 4 tests out of 654 needed the full JDK
15 lines
250 B
Kotlin
15 lines
250 B
Kotlin
import kotlin.*
|
|
|
|
fun box() : String {
|
|
val vector = java.util.Vector<Int>()
|
|
vector.add(1)
|
|
vector.add(2)
|
|
vector.add(3)
|
|
|
|
var sum = 0
|
|
for(e in vector.elements()) {
|
|
sum += e
|
|
}
|
|
return if(sum == 6) "OK" else "fail"
|
|
}
|