Files
kotlin-fork/compiler/testData/diagnostics/tests/jdk-annotations/ArrayListToArray.kt
T
2012-11-29 17:02:43 +04:00

11 lines
247 B
Kotlin

package kotlin1
import java.util.*
fun main(args : Array<String>) {
val al : ArrayList<Int> = ArrayList<Int>()
// A type mismatch on this line means that jdk-annotations were not loaded
al.toArray(Array<Int>(3, {1})) : Array<Int>
}