0db60bf6cb
Since annotations are a part of the declaration, they must have the same visibility as the declaration in the bytecode. Otherwise obfuscators like Proguard might strip the "$annotations" method and no annotations would be found via Kotlin reflection #KT-15993 Fixed
11 lines
225 B
Kotlin
Vendored
11 lines
225 B
Kotlin
Vendored
open class Foo {
|
|
annotation class Anno
|
|
|
|
@Anno
|
|
protected val prop = 42
|
|
}
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: Foo, prop$annotations
|
|
// FLAGS: ACC_DEPRECATED, ACC_STATIC, ACC_SYNTHETIC, ACC_PROTECTED
|