dc38ce24f7
Related to KT-57135
16 lines
249 B
Kotlin
Vendored
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
|