TESTS: "for" and INSTANCEOF, NOT_INSTANCEOF, isInstanceOf on interface are added
This commit is contained in:
committed by
vvlevchenko
parent
3a49e69046
commit
c1bb762417
@@ -0,0 +1,7 @@
|
||||
fun cycle_for(arr: Array<Int>) : Int {
|
||||
var sum = 0
|
||||
for (i in arr) {
|
||||
sum += i
|
||||
}
|
||||
return sum
|
||||
}
|
||||
Reference in New Issue
Block a user