Remove reified constraint from Array constructors #KT-57363
This is an attempt to bring consistency to array constructors reified requirement. Currently, JVM - reified type in all three: arrayOfNulls, arrayOf, emptyArray Native - reified in arrayOfNulls and arrayOf, but not in emptyArray JS & Wasm - reified in arrayOfNulls, but not in arrayOf and emptyArray Merge-request: KT-MR-11005 Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
2a24eaeb74
commit
86c1e0ded6
@@ -45,7 +45,7 @@ public inline fun UShortArray(size: kotlin.Int, init: (kotlin.Int) -> kotlin.USh
|
||||
|
||||
public inline fun <T> arrayOf(vararg elements: T): kotlin.Array<T>
|
||||
|
||||
public inline fun <reified T> arrayOfNulls(size: kotlin.Int): kotlin.Array<T?>
|
||||
public inline fun <T> arrayOfNulls(size: kotlin.Int): kotlin.Array<T?>
|
||||
|
||||
public inline fun booleanArrayOf(vararg elements: kotlin.Boolean): kotlin.BooleanArray
|
||||
|
||||
|
||||
Reference in New Issue
Block a user