Files
kotlin/compiler/testData/codegen/boxWithStdlib/reflection/annotations/simpleValAnnotation.kt
Yan Zhulanow 2ce9903356 Fix tests
2015-08-31 15:33:13 +03:00

9 lines
204 B
Kotlin
Vendored

annotation(retention = AnnotationRetention.RUNTIME) class Simple(val value: String)
@property:Simple("OK")
val foo: Int = 0
fun box(): String {
return (::foo.annotations.single() as Simple).value
}