Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt.txt
T

99 lines
1.2 KiB
Plaintext
Vendored

annotation class TestAnn : Annotation {
constructor(x: String) /* primary */
val x: String
field = x
get
}
@TestAnn(x = "class")
class TestClass {
constructor() /* primary */ {
super/*Any*/()
/* InstanceInitializerCall */
}
}
@TestAnn(x = "interface")
interface TestInterface {
}
@TestAnn(x = "object")
object TestObject {
private constructor() /* primary */ {
super/*Any*/()
/* InstanceInitializerCall */
}
}
class Host {
constructor() /* primary */ {
super/*Any*/()
/* InstanceInitializerCall */
}
@TestAnn(x = "companion")
companion object TestCompanion {
private constructor() /* primary */ {
super/*Any*/()
/* InstanceInitializerCall */
}
}
}
@TestAnn(x = "enum")
enum class TestEnum : Enum<TestEnum> {
private constructor() /* primary */ {
TODO("IrEnumConstructorCall")
/* InstanceInitializerCall */
}
fun values(): Array<TestEnum> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): TestEnum /* Synthetic body for ENUM_VALUEOF */
}
@TestAnn(x = "annotation")
annotation class TestAnnotation : Annotation {
constructor() /* primary */
}