9a4a3d1f49
^KT-56543 Merge-request: KT-MR-9299 Merged-by: Dmitrii Gridin <dmitry.gridin@jetbrains.com>
32 lines
726 B
Kotlin
Vendored
32 lines
726 B
Kotlin
Vendored
// IGNORE_REVERSED_RESOLVE
|
|
import kotlin.reflect.KClass
|
|
|
|
enum class SomeEnum {
|
|
A, B
|
|
}
|
|
|
|
annotation class MyAnnotation(
|
|
val intValue: Int,
|
|
val stringValue: String,
|
|
val enumValue: SomeEnum,
|
|
val kClasses: Array<out KClass<*>>,
|
|
val annotation: MyOtherAnnotation
|
|
)
|
|
annotation class MyOtherAnnotation(val intValue: Int, val stringValue: String)
|
|
|
|
const val constInt = 10
|
|
const val constString = ""
|
|
|
|
@MyAnnotation(
|
|
intValue = 10,
|
|
stringValue = constString,
|
|
enumValue = SomeEnum.A,
|
|
kClasses = [String::class, <!ANNOTATION_ARGUMENT_MUST_BE_KCLASS_LITERAL!>constString::class<!>],
|
|
|
|
annotation = MyOtherAnnotation(
|
|
intValue = constInt,
|
|
stringValue = "hello"
|
|
)
|
|
)
|
|
fun foo() {}
|