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

13 lines
268 B
Kotlin
Vendored

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