diff --git a/testlib/test/CollectionTest.kt b/testlib/test/CollectionTest.kt index 3da480712a1..1a85c73a7e5 100644 --- a/testlib/test/CollectionTest.kt +++ b/testlib/test/CollectionTest.kt @@ -82,17 +82,11 @@ class CollectionTest() : TestSupport() { } fun testFlatMap() { - /** - TODO compiler bug - we should be able to remove the explicit type on the function - http://youtrack.jetbrains.net/issue/KT-849 - */ - // TODO there should be a neater way to do this :) - val characters = arrayList('f', 'o', 'o', 'b', 'a', 'r') + // TODO figure out how to get a line like this to compile :) /* val characters = data.flatMap{ - Arrays.asList((it as java.lang.String).toCharArray()) as Collection + it.toCharArray().toList() as Collection } */ todo {