Added copyToArray intrinsic method.
#KT-3352 fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import java.util.Arrays
|
||||
|
||||
fun box(): String {
|
||||
val array = Arrays.asList(2, 3, 9).copyToArray()
|
||||
if (array !is Array<Int>) return array.javaClass.toString()
|
||||
|
||||
val str = Arrays.toString(array)
|
||||
if (str != "[2, 3, 9]") return str
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user