fbcde11b04
This test ensures that annotations on other annotations are properly handled, even if those annotations are defined in Java rather than in Kotlin. Note that this functionality only works on FIR, and currently has bugs that mean the result is an error type. Follow-on changes will fix the error-type bug, and restore proper functionality for FIR.
22 lines
841 B
Plaintext
Vendored
22 lines
841 B
Plaintext
Vendored
KtDeclaration: KtProperty foo
|
|
annotations: [
|
|
JavaAnno(value = [java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD])
|
|
psi: KtAnnotationEntry
|
|
annotations: [
|
|
kotlin/annotation/Target(allowedTargets = error("non-annotation value"))
|
|
psi: null
|
|
annotations: [
|
|
kotlin/annotation/Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS])
|
|
psi: null
|
|
<recursive meta-annotation kotlin/annotation/Target>
|
|
kotlin/annotation/MustBeDocumented()
|
|
psi: null
|
|
annotations: [
|
|
kotlin/annotation/Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS])
|
|
psi: null
|
|
<recursive meta-annotation kotlin/annotation/Target>
|
|
]
|
|
]
|
|
]
|
|
]
|