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

16 lines
276 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// 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
}