Support interpretation of toArray for collections

This commit is contained in:
Ivan Kylchik
2021-06-10 20:20:27 +03:00
committed by TeamCityServer
parent b10fdb919f
commit 78475a5d9c
2 changed files with 12 additions and 1 deletions
@@ -24,6 +24,7 @@ fun test(list: MyArrayList<Int>): String {
val otherList = arrayListOf(4, 5, 6)
list.addAll(otherList)
list.addAll(emptyList<Int>())
return "Counter " + list.addCounter + "; size " + list.size
}