mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
29 lines
468 B
Kotlin
Vendored
29 lines
468 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// 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"
|