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

10 lines
174 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class A() {
class B(val i: Int) {
}
fun test() = Array<B> (10, { B(it) })
}
fun box() = if(A().test()[5].i == 5) "OK" else "fail"