JVM_IR: Preserve annotations on inline class replacement methods.
This commit is contained in:
committed by
Alexander Udalov
parent
e7835fecfc
commit
98f5c5aa95
+1
-1
@@ -144,7 +144,6 @@ class MemoizedInlineClassReplacements {
|
||||
|
||||
val parameterMap = mutableMapOf<IrValueParameterSymbol, IrValueParameter>()
|
||||
val replacement = buildReplacement(function) {
|
||||
annotations += function.annotations
|
||||
metadata = function.metadata
|
||||
overriddenSymbols.addAll(overrides)
|
||||
|
||||
@@ -203,6 +202,7 @@ class MemoizedInlineClassReplacements {
|
||||
returnType = function.returnType
|
||||
}.apply {
|
||||
parent = function.parent
|
||||
annotations += function.annotations
|
||||
if (function is IrConstructor) {
|
||||
copyTypeParameters(function.constructedClass.typeParameters + function.typeParameters)
|
||||
} else {
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// WITH_REFLECT
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
@file:Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
||||
package test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user