Files
kotlin-fork/compiler/testData/codegen/box/annotations/invisibleFunctionWithReceiverWithSuppress.kt
T
Alexander Udalov be4df35867 Tests: add FILE directives to some multimodule tests
To help them run on the old infrastructure, which light analysis tests
are still using.
2023-06-13 17:48:23 +00:00

26 lines
367 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// ISSUE: KT-53698
// MODULE: lib
// FILE: lib.kt
package foo
class Some(val s: String)
internal fun Some.foo(): String = s
// MODULE: main(lib)
// FILE: main.kt
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
package bar
import foo.Some
import foo.foo
fun box(): String {
val some = Some("OK")
return some.foo()
}