KT-1589: Array<T>(size) renamed to arrayOfNulls

This commit is contained in:
Alex Tkachman
2012-04-02 14:30:37 +03:00
parent a1582e1911
commit ffbce7fe1e
21 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ val Collection<*>.indices : IntRange
get() = 0..size-1
public inline fun <T> java.util.Collection<T>.toArray() : Array<T> {
val answer = Array<T>(this.size)
val answer = arrayOfNulls<T>(this.size)
var idx = 0
for (elem in this)
answer[idx++] = elem