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

13 lines
205 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class C {
fun calc() : String {
return "OK"
}
}
fun box(): String? {
val c: C? = C()
val arrayList = arrayOf(c?.calc(), "")
return arrayList[0]
}