Files
kotlin-fork/compiler/testData/writeFlags/jvm8/defaults/compatibility/propertyAnnotation.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

22 lines
526 B
Kotlin
Vendored

// !JVM_DEFAULT_MODE: compatibility
// !LANGUAGE: +UseGetterNameForPropertyAnnotationsMethodOnJvm
// JVM_TARGET: 1.8
// WITH_RUNTIME
annotation class Property(val value: String)
interface Test {
@Property("OK")
@JvmDefault
val test: String
get() = "OK"
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Test, getTest$annotations
// ABSENT: TRUE
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Test$DefaultImpls, getTest$annotations
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC, ACC_DEPRECATED