[FIR] Add test for KT-55026

This commit is contained in:
Dmitriy Novozhilov
2022-12-01 13:03:48 +02:00
committed by Space Team
parent 0466fc536d
commit 6c6525ecde
3 changed files with 32 additions and 0 deletions
@@ -0,0 +1,20 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// FIR_STATUS: KT-55026
// ISSUE: KT-55026
// MODULE: lib
interface Base {
val x: String
}
internal class Some(override val x: String) : Base
internal class Other(override val x: String) : Base
// MODULE: main(lib)
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
internal fun Some(): Base = Some("K")
internal fun foo(): Base = Other("O")
fun box(): String = foo().x + Some().x