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:
committed by
Alexander Udalov
parent
654411a0b0
commit
d345ba05dd
@@ -16,7 +16,7 @@
|
||||
|
||||
package kotlin
|
||||
|
||||
public class Array<reified T>(size: Int, init: (Int) -> T) : Cloneable {
|
||||
public class Array<reified T> private (): Cloneable {
|
||||
public fun get(index: Int): T
|
||||
public fun set(index: Int, value: T): Unit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user