[FIR2IR] Properly handle error references in generation of receivers

^KT-53698 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-12-05 10:01:19 +02:00
committed by Space Team
parent f3da26946b
commit 9946bfcdfd
5 changed files with 40 additions and 9 deletions
@@ -0,0 +1,20 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-53698
// MODULE: lib
package foo
class Some(val s: String)
internal fun Some.foo(): String = s
// MODULE: main(lib)
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
package bar
import foo.Some
import foo.foo
fun box(): String {
val some = Some("OK")
return some.foo()
}