KT-274 stdlib part and commented test. Still require frontend test

This commit is contained in:
Alex Tkachman
2012-01-05 00:16:25 +02:00
parent 79049ca2e2
commit ebe2c375cd
3 changed files with 38 additions and 0 deletions
@@ -0,0 +1,14 @@
import std.*
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"
}