Make all *Array.fill() extensions returning an array #KT-4760 Fixed
This commit is contained in:
committed by
Andrey Breslav
parent
1db035a0aa
commit
d54fb97c5d
@@ -43,9 +43,13 @@ fun specialJVM(): List<GenericFunction> {
|
||||
templates add f("fill(element: T)") {
|
||||
only(ArraysOfObjects, ArraysOfPrimitives)
|
||||
doc { "Fills original array with the provided value" }
|
||||
returns("Unit")
|
||||
returns { "SELF" }
|
||||
returns(ArraysOfObjects) { "Array<out T>" }
|
||||
body {
|
||||
"Arrays.fill(this, element)"
|
||||
"""
|
||||
Arrays.fill(this, element)
|
||||
return this
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user