Make all *Array.fill() extensions returning an array #KT-4760 Fixed

This commit is contained in:
Ilya Ryzhenkov
2014-04-04 15:27:24 +04:00
committed by Andrey Breslav
parent 1db035a0aa
commit d54fb97c5d
2 changed files with 33 additions and 11 deletions
@@ -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
"""
}
}