Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.kt.txt
T
2024-02-16 10:19:38 +00:00

21 lines
315 B
Kotlin
Vendored

open annotation class TestAnn : Annotation {
val x: String
field = x
get
constructor(x: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
fun foo() {
@TestAnn(x = "foo/testVal")
val testVal: String = "testVal"
@TestAnn(x = "foo/testVar")
var testVar: String = "testVar"
}