Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt
T
2023-03-22 15:18:17 +00:00

25 lines
386 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
annotation class TestAnn(val x: String)
@TestAnn("class")
class TestClass
@TestAnn("interface")
interface TestInterface
@TestAnn("object")
object TestObject
class Host {
@TestAnn("companion")
companion object TestCompanion
}
@TestAnn("enum")
enum class TestEnum
@TestAnn("annotation")
annotation class TestAnnotation