mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Also add a deprecated extension property to help migration. This is done to unify getting size of arrays and collections
9 lines
196 B
Kotlin
9 lines
196 B
Kotlin
package b
|
|
|
|
fun main(args : Array<String>) {
|
|
var ints : Array<Int?> = arrayOfNulls<Int>(31)
|
|
|
|
ints[0] = 4; ints[11] = 5; ints[2] =7
|
|
for(i in 0..ints.size())
|
|
ints[i<!SYNTAX!><!>
|
|
} |