Files
kotlin/compiler/testData/codegen/box/multifileClasses/constPropertyReferenceFromMultifileClass.kt
2016-11-09 21:41:12 +03:00

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"