Loading java arrays as Array<out T> at method return type position, as well.

This commit is contained in:
Evgeny Gerashchenko
2012-11-15 19:19:58 +04:00
parent d2a308964d
commit 21e97b408c
21 changed files with 64 additions and 63 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class StringUtilTest() : TestCase() {
fun testToRegex() {
val re = """foo""".toRegex()
val list = re.split("hellofoobar").toList()
val list = (re.split("hellofoobar") as Array<String>).toList()
assertEquals(arrayList("hello", "bar"), list)
}
}