Files
kotlin/compiler/testData/codegen/box/properties/const/constValInAnnotationDefault.kt
2018-06-09 19:15:38 +03:00

17 lines
309 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// 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
}