Fixed VerifyError when copyToArray() is immediately returned from method.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import java.util.Arrays
|
||||
|
||||
fun getCopyToArray(): Array<Int> = Arrays.asList(2, 3, 9).copyToArray()
|
||||
|
||||
fun box(): String {
|
||||
val str = Arrays.toString(getCopyToArray())
|
||||
if (str != "[2, 3, 9]") return str
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user