Added inline function "Array" into stdlib

It has the same signature and semantics as Array constructor had
Also made Array constructor private and accepting no arguments
This commit is contained in:
Denis Zharkov
2014-12-11 10:22:00 +03:00
committed by Alexander Udalov
parent 654411a0b0
commit d345ba05dd
4 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ public open class Any {
}
public final class Array</*0*/ reified T> : kotlin.Cloneable {
/*primary*/ public constructor Array</*0*/ reified T>(/*0*/ size: kotlin.Int, /*1*/ init: kotlin.Function1<kotlin.Int, T>)
/*primary*/ private constructor Array</*0*/ reified T>()
public open override /*1*/ fun clone(): kotlin.Array<T>
public final fun get(/*0*/ index: kotlin.Int): T
public final fun iterator(): kotlin.Iterator<T>