K2: fix field annotation splitting and frontend checks
Related to KT-57135
This commit is contained in:
committed by
Space Team
parent
37ed7beda0
commit
dc38ce24f7
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user