Rename *array() factory methods to *arrayOf().

This commit is contained in:
Ilya Gorbunov
2015-04-20 18:42:08 +03:00
parent 58310d172f
commit 5eb3c0bb5e
9 changed files with 362 additions and 323 deletions
@@ -125,7 +125,7 @@ class CollectionJVMTest {
}
test fun filterIsInstanceArray() {
val src: Array<Any> = array(1, 2, 3.toDouble(), "abc", "cde")
val src: Array<Any> = arrayOf(1, 2, 3.toDouble(), "abc", "cde")
val intValues: List<Int> = src.filterIsInstance<Int>()
assertEquals(listOf(1, 2), intValues)