[Tests] Update test data with error suppression warnings

#KT-61129 Fixed
This commit is contained in:
Kirill Rakhman
2023-08-14 13:14:04 +02:00
committed by Space Team
parent 969c716c76
commit 5b9c35de2e
88 changed files with 889 additions and 87 deletions
@@ -0,0 +1,31 @@
// WITH_STDLIB
// FIR_DUMP
// FILE: First.kt
package sample.pack
@Suppress(<!ERROR_SUPPRESSION!>"INVISIBLE_REFERENCE"<!>, "INVISIBLE_MEMBER")
@kotlin.internal.HidesMembers
fun A.forEach() = "::A.forEach"
class A {
fun B.forEach() = "A::B.forEach"
}
class B
// FILE: Second.kt
package sample
import sample.pack.*
fun box() {
return with(A()) {
with(B()) {
// Both K1 & K2 resolve to A::B.check
forEach()
}
}
}