[FIR] Fix naming of local classes when serializing metadata

^KT-63655: Fixed
^KT-63901: Fixed
^KT-63988: Fixed
This commit is contained in:
vladislav.grechko
2024-01-29 18:02:09 +01:00
committed by Space Team
parent 78876b32e9
commit 54858c2118
49 changed files with 327 additions and 182 deletions
@@ -1,5 +1,3 @@
// IGNORE K2
// ^ KT-63655 K2: incorrect short class name in metadata for anonymous object inside a local class
fun test() {
class Local {
@@ -9,13 +9,13 @@ public final class A : kotlin/Any {
}
// A$L.class
// ------------------------------------------
local final class .A.L<T#0 /* T */> : kotlin/Any {
local final class .A$L<T#0 /* T */> : kotlin/Any {
// signature: <init>()V
public constructor()
// signature: x(LA$L;)V
public final fun x(l: .A.L<.A.L.I>): kotlin/Unit
public final fun x(l: .A$L<.A.L.I>): kotlin/Unit
// nested class: I