diff --git a/libraries/stdlib/src/kotlin/Arrays.kt b/libraries/stdlib/src/kotlin/Arrays.kt index 895c41e234f..63ddb61e49b 100644 --- a/libraries/stdlib/src/kotlin/Arrays.kt +++ b/libraries/stdlib/src/kotlin/Arrays.kt @@ -7,7 +7,7 @@ public inline fun Array.notEmpty() : Boolean = !this.isEmpty() public inline fun Array.isEmpty() : Boolean = this.size == 0 /** Returns the array if its not null or else returns an empty array */ -public inline fun Array?.orEmpty() : Array = if (this != null) this else array() +public inline fun Array?.orEmpty() : Array = if (this != null) this else array() public inline val BooleanArray.lastIndex : Int get() = this.size - 1