Fix JVM type mapping of arrays of type variables

#KT-4262 Fixed
 #KT-5056 Fixed
This commit is contained in:
Alexander Udalov
2014-05-20 18:32:34 +04:00
parent 4e8d6d4882
commit af3d56b44e
5 changed files with 31 additions and 4 deletions
@@ -202,6 +202,13 @@ class ArraysTest {
assertEquals(listOf(100L, 200L, 30L), array(50L, 100L, 200L, 30L).slice(1..3))
assertEquals(listOf(true, false, true), array(true, false, true, true).slice(iter))
}
test fun toSortedList() {
assertEquals(listOf<Nothing>(), array<Nothing>().toSortedList())
assertEquals(listOf(1), array(1).toSortedList())
assertEquals(listOf("aab", "aba", "ac"), array("ac", "aab", "aba").toSortedList())
}
/*
TODO FIXME ASAP: These currently fail on JS due to missing upto() method on numbers