blob: 4c563da79ec8a302d52040514dc5e4083b6f1777 [file] [log] [blame]
// TARGET_BACKEND: JVM
// WITH_STDLIB
// WITH_REFLECT
// MODULE: lib
// FILE: A.kt
@file:[JvmName("MultifileClass") JvmMultifileClass]
package a
annotation class A
@A
const val OK: String = "OK"
// MODULE: main(lib)
// FILE: B.kt
import a.OK
fun box(): String {
val okRef = ::OK
val annotations = okRef.annotations
if (annotations.size != 1) {
throw AssertionError("Failed, annotations: $annotations")
}
return okRef.get()
}