Files
kotlin-fork/compiler/testData/writeFlags/property/syntheticAnnotationsMethod/protectedProperty.kt
T
Alexander Udalov e2a42446ed Use getter names for $annotations methods in most codegen tests
This is needed to update master to 1.4, while still testing the latest
compiler by default. Also add one test on the old behavior.
2019-12-30 16:29:13 +01:00

13 lines
291 B
Kotlin
Vendored

// !LANGUAGE: +UseGetterNameForPropertyAnnotationsMethodOnJvm
open class Foo {
annotation class Anno
@Anno
protected val prop = 42
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Foo, getProp$annotations
// FLAGS: ACC_DEPRECATED, ACC_STATIC, ACC_SYNTHETIC, ACC_PROTECTED