mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
27 lines
395 B
Kotlin
Vendored
27 lines
395 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_REFLECT
|
|
// FILE: 1.kt
|
|
|
|
import a.OK
|
|
|
|
fun box(): String {
|
|
val okRef = ::OK
|
|
|
|
val annotations = okRef.annotations
|
|
if (annotations.size != 1) {
|
|
return "Failed, annotations: $annotations"
|
|
}
|
|
|
|
return okRef.get()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
|
package a
|
|
|
|
annotation class A
|
|
|
|
@A
|
|
const val OK: String = "OK"
|