Add language feature for changed name of property annotations method

#KT-31352 Fixed
This commit is contained in:
Alexander Udalov
2019-05-28 16:39:53 +02:00
parent ea0142da60
commit 01ddac58e1
32 changed files with 83 additions and 50 deletions
@@ -13,9 +13,9 @@ interface Test {
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Test, getTest$annotations
// TESTED_OBJECTS: Test, test$annotations
// ABSENT: TRUE
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Test$DefaultImpls, getTest$annotations
// TESTED_OBJECTS: Test$DefaultImpls, test$annotations
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC, ACC_DEPRECATED
@@ -15,9 +15,9 @@ interface Test {
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Test, getTest$annotations
// TESTED_OBJECTS: Test, test$annotations
// ABSENT: TRUE
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Test$DefaultImpls, getTest$annotations
// TESTED_OBJECTS: Test$DefaultImpls, test$annotations
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC, ACC_DEPRECATED
@@ -7,5 +7,5 @@ class Foo {
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Foo, getProp$annotations
// TESTED_OBJECTS: Foo, prop$annotations
// FLAGS: ACC_DEPRECATED, ACC_STATIC, ACC_SYNTHETIC, ACC_PRIVATE
@@ -7,5 +7,5 @@ open class Foo {
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Foo, getProp$annotations
// TESTED_OBJECTS: Foo, prop$annotations
// FLAGS: ACC_DEPRECATED, ACC_STATIC, ACC_SYNTHETIC, ACC_PROTECTED
@@ -7,5 +7,5 @@ class Foo {
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: Foo, getProp$annotations
// TESTED_OBJECTS: Foo, prop$annotations
// FLAGS: ACC_DEPRECATED, ACC_STATIC, ACC_SYNTHETIC, ACC_PUBLIC
@@ -0,0 +1,15 @@
// !LANGUAGE: +UseGetterNameForPropertyAnnotationsMethodOnJvm
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
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