[FIR] Don't forget about annotations when resolving qualifiers

This commit is contained in:
Nikolay Lunyak
2023-08-11 16:10:24 +03:00
committed by Space Team
parent 1c2eab39d2
commit 389632ed53
8 changed files with 76 additions and 29 deletions
+19
View File
@@ -0,0 +1,19 @@
// FIR_IDENTICAL
// ISSUE: KT-61065
// FILE: PrivateObjekt.kt
private object PrivateObjekt
// FILE: Main.kt
fun test(arg: Any?) {
when (arg) {
// K1: ok
// K2: INVISIBLE_REFERENCE
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") PrivateObjekt -> Unit
}
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") PrivateObjekt
val it = @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") PrivateObjekt
}