[FIR2IR] Properly handle error references in generation of receivers
^KT-53698 Fixed
This commit is contained in:
committed by
Space Team
parent
f3da26946b
commit
9946bfcdfd
+20
@@ -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()
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// FIR status: some error in resolve (FirErrorNamedReferenceImpl in FIR)
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// WITH_COROUTINES
|
||||
@@ -110,4 +108,4 @@ fun box(): String {
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user