Do not require array extensions being reified to create new array.
#KT-15377
This commit is contained in:
@@ -143,6 +143,10 @@ header abstract class AbstractMutableList<E> : MutableList<E> {
|
||||
|
||||
// From collections.kt
|
||||
|
||||
/** Returns the array if it's not `null`, or an empty array otherwise. */
|
||||
header inline fun <reified T> Array<out T>?.orEmpty(): Array<out T>
|
||||
|
||||
|
||||
header inline fun <reified T> Collection<T>.toTypedArray(): Array<T>
|
||||
|
||||
header fun <T : Comparable<T>> MutableList<T>.sort(): Unit
|
||||
|
||||
Reference in New Issue
Block a user