J2K produces unresolved 'toArray' calls for java Collection#toArray(T[])

#KT-11600 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-03-28 12:07:51 +03:00
parent a8bebeb48d
commit 68907d05c3
3 changed files with 14 additions and 4 deletions
+4 -2
View File
@@ -1,7 +1,9 @@
import java.util.Arrays
class Foo {
fun m(): Array<Any> {
return Arrays.asList("a", "b").toTypedArray()
fun test() {
val list = Arrays.asList("a", "b")
val array1 = list.toTypedArray()
val array2 = list.toTypedArray()
}
}