Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/FieldAnnotationWithClasses.kt
T
Mikhail Glukhikh dc38ce24f7 K2: fix field annotation splitting and frontend checks
Related to KT-57135
2023-04-25 12:18:26 +00:00

16 lines
249 B
Kotlin
Vendored

// WITH_REFLECT
import kotlin.reflect.*
annotation class Ann(vararg val allowedTypes: KClass<*>)
fun foo() {
class Local {
@field:Ann(allowedTypes = [Some::class, Other::class])
val x: Int = 42
}
}
class Some
class Other