[Tests] Update test data with error suppression warnings
#KT-61129 Fixed
This commit is contained in:
committed by
Space Team
parent
969c716c76
commit
5b9c35de2e
@@ -0,0 +1,18 @@
|
||||
// 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", <!ERROR_SUPPRESSION!>"INVISIBLE_REFERENCE"<!>) PrivateObjekt -> Unit
|
||||
}
|
||||
|
||||
@Suppress("INVISIBLE_MEMBER", <!ERROR_SUPPRESSION!>"INVISIBLE_REFERENCE"<!>) PrivateObjekt
|
||||
|
||||
val it = @Suppress("INVISIBLE_MEMBER", <!ERROR_SUPPRESSION!>"INVISIBLE_REFERENCE"<!>) PrivateObjekt
|
||||
}
|
||||
Reference in New Issue
Block a user