Files
kotlin-fork/compiler/testData/codegen/box/annotations/suppressInvisibleMember.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

23 lines
434 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// ISSUE: KT-55026
// MODULE: lib
// FILE: lib.kt
interface Base {
val x: String
}
internal class Some(override val x: String) : Base
internal class Other(override val x: String) : Base
// MODULE: main(lib)
// FILE: main.kt
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
internal fun Some(): Base = Some("K")
internal fun foo(): Base = Other("O")
fun box(): String = foo().x + Some().x