[IR] dumpKotlinLike: add testdata for FIR tests

This commit is contained in:
Zalim Bashorov
2020-11-20 18:18:14 +03:00
committed by teamcityserver
parent d7bd4240e1
commit c68040753d
298 changed files with 12186 additions and 0 deletions
@@ -0,0 +1,71 @@
annotation class TestAnn : Annotation {
constructor(x: String) /* primary */
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 */
}
@TestAnn(x = "annotation")
annotation class TestAnnotation : Annotation {
constructor() /* primary */
}