Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/unreachableNestedClassAsAnnotationParameter.fir.kt
T
2023-10-17 20:32:11 +00:00

14 lines
429 B
Kotlin
Vendored

import kotlin.reflect.KClass
@Target(AnnotationTarget.CLASS, AnnotationTarget.TYPE_PARAMETER, AnnotationTarget.TYPE)
annotation class Special(val why: KClass<*>)
interface Interface
class Outer {
@Special(<!ANNOTATION_ARGUMENT_MUST_BE_CONST!><!UNRESOLVED_REFERENCE!>NestedNested<!>::class<!>)
class Nested<@Special(NestedNested::class) T> : @Special(NestedNested::class) Interface {
class NestedNested
}
}