Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.fir.kt.txt
T
Dmitriy Dolovov 16d1e85932 IR text tests: Stable blank lines between declarations in class
Rework rendering of kt-like dump and signatures dump in order to avoid
unstable blank line between declarations of the same level:
1. No blank line for the first declaration inside the member scope of
the class.
2. Always a single blank line between each two subsequent declarations
inside the member scope of the class.
2023-11-30 08:32:35 +00:00

83 lines
1.3 KiB
Kotlin
Vendored

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