JVM IR: fix names of $annotations methods for internal properties

#KT-40384 Fixed
This commit is contained in:
Alexander Udalov
2020-10-13 19:13:06 +02:00
parent 3f73be391f
commit fbf56c054b
9 changed files with 51 additions and 8 deletions
@@ -0,0 +1,9 @@
annotation class Anno
class C {
@Anno
internal val property: Int get() = 0
}
@Anno
internal val property: Int get() = 0
@@ -0,0 +1,20 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class Anno {
// source: 'internalProperty.kt'
}
@kotlin.Metadata
public final class C {
// source: 'internalProperty.kt'
public method <init>(): void
public synthetic deprecated static @Anno method getProperty$test_module$annotations(): void
public final method getProperty$test_module(): int
}
@kotlin.Metadata
public final class InternalPropertyKt {
// source: 'internalProperty.kt'
public synthetic deprecated static @Anno method getProperty$annotations(): void
public final static method getProperty(): int
}
@@ -17,4 +17,7 @@ class C {
@Anno
val returnType: Z get() = Z(0)
@Anno
internal val Z.internal: Int get() = 0
}
@@ -17,6 +17,8 @@ public final class AnnotatedPropertyWithInlineClassTypeInSignatureKt {
public final class C {
// source: 'annotatedPropertyWithInlineClassTypeInSignature.kt'
public method <init>(): void
public synthetic deprecated static @Anno method getInternal-IQRRRT4$test_module$annotations(p0: int): void
public final method getInternal-IQRRRT4$test_module(p0: int): int
public synthetic deprecated static @Anno method getMemberExtension-IQRRRT4$annotations(p0: int): void
public final method getMemberExtension-IQRRRT4(p0: int): int
public synthetic deprecated static @Anno method getReturnType-a_XrcN0$annotations(): void