Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/arrays/inProjectionOfList.kt
T
2016-01-22 05:54:38 +03:00

10 lines
200 B
Kotlin
Vendored

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
}