JVM IR: do not mangle synthetic methods with inline class parameters
For example, synthetic `$annotations` methods for properties were previously mangled to `$annotations-...`, which breaks annotation loader, and fails an assert in ClassCodegen.generateMethod.
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
annotation class Anno
|
||||
|
||||
inline class Z(val s: String)
|
||||
|
||||
class A {
|
||||
@Anno
|
||||
val Z.r: String get() = s
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
with(A()) {
|
||||
return Z("OK").r
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user