[FIR2IR] Support error qualifier in case of error suppression
#KT-60536 Fixed
This commit is contained in:
committed by
Space Team
parent
51a43a02f7
commit
79fe48ab5b
@@ -0,0 +1,22 @@
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
package lib
|
||||
|
||||
interface Key {
|
||||
val s get() = "OK"
|
||||
}
|
||||
|
||||
internal class Internal {
|
||||
companion object : Key
|
||||
}
|
||||
|
||||
// MODULE: box(lib)
|
||||
// FILE: box.kt
|
||||
package app
|
||||
|
||||
import lib.*
|
||||
|
||||
fun foo(key: Key) = key.s
|
||||
|
||||
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
fun box() = foo(Internal)
|
||||
Reference in New Issue
Block a user