Files
kotlin-fork/compiler/testData/codegen/box/arrays/inProjectionOfList.kt
T
2019-11-19 11:00:09 +03:00

15 lines
273 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
fun box(): String {
val x: Array<List<*>> = arrayOf(listOf(1))
val y : Array<in List<String>> = x
if (y.size != 1) return "fail 1"
y[0] = listOf("OK")
return x[0][0] as String
}