Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/options/targets/nested.kt
T

17 lines
348 B
Kotlin
Vendored

// FIR_IDENTICAL
@Target(AnnotationTarget.CLASS)
annotation class base
@Target(AnnotationTarget.ANNOTATION_CLASS)
annotation class meta
@base class Outer {
@base <!WRONG_ANNOTATION_TARGET!>@meta<!> class Nested
@base @meta annotation class Annotated
fun foo() {
@base <!WRONG_ANNOTATION_TARGET!>@meta<!> class Local
}
}