mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Fix annotations on Java elements in reflection
#KT-10840 Fixed
This commit is contained in:
12
compiler/testData/codegen/boxWithJava/reflection/annotationsOnJavaMembers/K.kt
vendored
Normal file
12
compiler/testData/codegen/boxWithJava/reflection/annotationsOnJavaMembers/K.kt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
annotation class Anno(val value: String)
|
||||
|
||||
fun box(): String {
|
||||
assertEquals("[@Anno(value=J)]", J::class.annotations.toString())
|
||||
assertEquals("[@Anno(value=foo)]", J::foo.annotations.toString())
|
||||
assertEquals("[@Anno(value=bar)]", J::bar.annotations.toString())
|
||||
assertEquals("[@Anno(value=constructor)]", ::J.annotations.toString())
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user