Add language feature for changed name of property annotations method
#KT-31352 Fixed
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+15
@@ -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
|
||||
Reference in New Issue
Block a user