ebb9659e03
Currently JVM IR is not supported in kapt, so almost all tests are failing, and thus are muted with IGNORE_BACKEND. #KT-49682
35 lines
965 B
Kotlin
Vendored
35 lines
965 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
|
|
@file:kotlin.jvm.JvmName("AnnotationsTest")
|
|
package test
|
|
|
|
@Anno("anno-class")
|
|
annotation class Anno @Anno("anno-constructor") constructor(
|
|
@Anno("anno-value") val value: String
|
|
)
|
|
|
|
@Anno("clazz")
|
|
abstract class Test @Anno("test-constructor") protected constructor(@param:Anno("v-param")
|
|
@setparam:Anno("v-setparam")
|
|
@property:Anno("v-property")
|
|
@get:Anno("v-get")
|
|
@set:Anno("v-set") var v: String) {
|
|
@Anno("abstract-method")
|
|
abstract fun abstractMethod(): String
|
|
|
|
@Anno("abstract-val")
|
|
abstract val abstractVal: String
|
|
}
|
|
|
|
@Anno("top-level-fun")
|
|
fun @receiver:Anno("top-level-fun-receiver") String.topLevelFun() {}
|
|
|
|
@Anno("top-level-val")
|
|
val @receiver:Anno("top-level-val-receiver") Int.topLevelVal: String
|
|
get() = ""
|
|
|
|
@Anno("enum")
|
|
enum class Enum @Anno("enum-constructor") constructor(@Anno("x") val x: Int) {
|
|
@Anno("white") WHITE(1), @Anno("black") BLACK(2)
|
|
}
|