Fixed VerifyError when copyToArray() is immediately returned from method.

This commit is contained in:
Evgeny Gerashchenko
2013-10-01 18:58:08 +04:00
parent 94cb523eb7
commit dc42be8543
3 changed files with 18 additions and 1 deletions
@@ -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"
}