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:
+1
-1
@@ -51,7 +51,7 @@ class MemoizedInlineClassReplacements {
|
||||
it.isSyntheticInlineClassMember ||
|
||||
it.origin == IrDeclarationOrigin.LOCAL_FUNCTION_FOR_LAMBDA ||
|
||||
it.origin == IrDeclarationOrigin.DELEGATED_PROPERTY_ACCESSOR ||
|
||||
it.origin == JvmLoweredDeclarationOrigin.POLYMORPHIC_SIGNATURE_INSTANTIATION -> null
|
||||
it.origin.isSynthetic -> null
|
||||
it.hasMethodReplacement -> createMethodReplacement(it)
|
||||
it.hasStaticReplacement -> createStaticReplacement(it)
|
||||
else -> null
|
||||
|
||||
Reference in New Issue
Block a user