K2: reproduce KT-63164

This commit is contained in:
Mikhail Glukhikh
2023-11-15 13:43:39 +01:00
committed by Space Team
parent 271f83d07d
commit a139965231
22 changed files with 262 additions and 0 deletions
@@ -0,0 +1,26 @@
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE, WASM
// FIR status: see KT-63164
// ISSUE: KT-63164
// DUMP_IR
// MODULE: m1
// FILE: info.kt
internal class Info {
val status: String = "OK"
}
val info: Any? = Info()
// MODULE: m2(m1)
// FILE: box.kt
fun getStatus(param: Any?): String {
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
if (param is Info) {
return param.status
}
return "NO STATUS"
}
fun box(): String = getStatus(info)