blob: b9f29dc33f63b3f8b8bc6723a7036c235cf077f2 [file] [log] [blame]
// IGNORE_BACKEND: NATIVE
// FILE: A.kt
@file:[JvmName("MultifileClass") JvmMultifileClass]
package a
annotation class A
@A
const val OK: String = "OK"
// FILE: B.kt
import a.OK
fun box(): String {
val okRef = ::OK
// TODO: see KT-10892
// val annotations = okRef.annotations
// val numAnnotations = annotations.size
// if (numAnnotations != 1) {
// throw AssertionError("Failed, annotations: $annotations")
// }
val result = okRef.get()
return result
}