Files
kotlin-fork/compiler/testData/writeFlags/property/syntheticAnnotationsMethod/withGetterJvmName.kt
T
2019-08-28 19:41:11 +02:00

15 lines
335 B
Kotlin
Vendored

// !LANGUAGE: +UseGetterNameForPropertyAnnotationsMethodOnJvm
// WITH_RUNTIME
class Foo {
annotation class Anno
@Anno
@get:JvmName("jvmName")
val prop: Int
get() = 42
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Foo, jvmName$annotations
// FLAGS: ACC_DEPRECATED, ACC_STATIC, ACC_SYNTHETIC, ACC_PUBLIC