Use the same implementation in Array.toArrayList as in arrayListOf.
This commit is contained in:
@@ -57,7 +57,7 @@ fun snapshots(): List<GenericFunction> {
|
||||
}
|
||||
body(Collections) { "return ArrayList(this)" }
|
||||
body(Strings) { "return toCollection(ArrayList<T>(length()))" }
|
||||
body(ArraysOfObjects) { "return this.asList().toArrayList()" }
|
||||
body(ArraysOfObjects) { "return ArrayList(this.asCollection())" }
|
||||
body(ArraysOfPrimitives) {
|
||||
"""
|
||||
val list = ArrayList<T>(size())
|
||||
|
||||
Reference in New Issue
Block a user