J2K produces unresolved 'toArray' calls for java Collection#toArray(T[])
#KT-11600 Fixed
This commit is contained in:
+5
-2
@@ -1,7 +1,10 @@
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class Foo {
|
||||
public Object[] m() {
|
||||
return Arrays.asList("a", "b").toArray();
|
||||
public void test() {
|
||||
List<String> list = Arrays.asList("a", "b");
|
||||
Object[] array1 = list.toArray();
|
||||
Object[] array2 = list.toArray(new String[list.size()]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user