Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/arrays/inProjectionOfList.kt
T
2015-09-19 04:32:56 +03:00

10 lines
202 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
}