Files
kotlin-fork/compiler/testData/codegen/box/annotations/invisibleFunctionWithReceiverWithSuppress.kt
T
2022-12-09 12:02:06 +00:00

21 lines
331 B
Kotlin
Vendored

// 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()
}