Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/properties/const/constValInAnnotationDefault.kt
T

16 lines
284 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
const val z = "OK"
annotation class A(val value: String = z)
@A
class Test
fun box(): String {
return Test::class.java.getAnnotation(A::class.java).value
}