Files
kotlin-fork/compiler/testData/diagnostics/nativeTests/overridesMemberWithPlatformDependent.kt
T
Nikolay Lunyak 70605c84df [FIR Native] KT-58549: Get rid of the builtin provider
According to
`FirNativeCodegenBoxTestGenerated.testNestedClassesInAnnotations`,
the annotation
`kotlin.internal.PlatformDependent` is
unresolved reference.

^KT-58549 Fixed
2023-06-01 10:27:54 +00:00

23 lines
381 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-57858
// FILE: Sub.kt
package kotlin.internal
@Target(AnnotationTarget.FUNCTION)
annotation class PlatformDependent
// FILE: Main.kt
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
import kotlin.internal.PlatformDependent
interface I {
@PlatformDependent
fun f() {}
}
class C : I {
fun <!VIRTUAL_MEMBER_HIDDEN!>f<!>() {}
}