128c938965
Also add a deprecated extension property to help migration. This is done to unify getting size of arrays and collections
4 lines
112 B
Kotlin
4 lines
112 B
Kotlin
val <T> Array<T>.length : Int get() = this.size()
|
|
|
|
fun box() = if(Array(10, {1}).length == 10) "OK" else "fail"
|