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

13 lines
326 B
Kotlin
Vendored

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