[Manglers] Uniform handling of the error type in signature mangled names in all manglers

^KT-63723
This commit is contained in:
Dmitriy Dolovov
2023-12-13 21:30:06 +01:00
committed by Space Team
parent 089b7f31b5
commit 194efac68c
9 changed files with 76 additions and 56 deletions
@@ -5,12 +5,12 @@
val test1: ErrorType
// CHECK JVM_IR:
// Mangled name: #<get-test1>(){}<ERROR CLASS>
// Mangled name for the signature computed from Ir: <get-test1>(){}<ERROR CLASS>
// Mangled name for the signature computed from Descriptor: <get-test1>(){}<Error class: unknown class>
// Public signature by IR: /test1.<get-test1>|3342025465423582211[0]
// Public signature by IR debug description: <get-test1>(){}<ERROR CLASS>
// Public signature by Frontend: /test1.<get-test1>|-4817139884021780494[0]
// Public signature by Frontend debug description: <get-test1>(){}<Error class: unknown class>
// Public signature: /test1.<get-test1>|3342025465423582211[0]
// Public signature debug description: <get-test1>(){}<ERROR CLASS>
// CHECK JS_IR NATIVE:
// Mangled name: #<get-test1>(){}
// Public signature: /test1.<get-test1>|-5735092642142423279[0]
// Public signature debug description: <get-test1>(){}
get
// CHECK:
@@ -20,12 +20,12 @@ val test1: ErrorType
val test2: ErrorType
// CHECK JVM_IR:
// Mangled name: #<get-test2>(){}<ERROR CLASS>
// Mangled name for the signature computed from Ir: <get-test2>(){}<ERROR CLASS>
// Mangled name for the signature computed from Descriptor: <get-test2>(){}<Error class: unknown class>
// Public signature by IR: /test2.<get-test2>|-7934828597056891230[0]
// Public signature by IR debug description: <get-test2>(){}<ERROR CLASS>
// Public signature by Frontend: /test2.<get-test2>|1859255286326922853[0]
// Public signature by Frontend debug description: <get-test2>(){}<Error class: unknown class>
// Public signature: /test2.<get-test2>|-7934828597056891230[0]
// Public signature debug description: <get-test2>(){}<ERROR CLASS>
// CHECK JS_IR NATIVE:
// Mangled name: #<get-test2>(){}
// Public signature: /test2.<get-test2>|-5218942532816206869[0]
// Public signature debug description: <get-test2>(){}
get
// CHECK:
@@ -35,26 +35,10 @@ val test2: ErrorType
val test3: ErrorType
// CHECK JVM_IR:
// Mangled name: #<get-test3>(){}<ERROR CLASS>
// Mangled name for the signature computed from Ir: <get-test3>(){}<ERROR CLASS>
// Mangled name for the signature computed from Descriptor: <get-test3>(){}<Error class: unknown class>
// Public signature by IR: /test3.<get-test3>|3662345001344960274[0]
// Public signature by IR debug description: <get-test3>(){}<ERROR CLASS>
// Public signature by Frontend: /test3.<get-test3>|-2322568342617474229[0]
// Public signature by Frontend debug description: <get-test3>(){}<Error class: unknown class>
// Public signature: /test3.<get-test3>|3662345001344960274[0]
// Public signature debug description: <get-test3>(){}<ERROR CLASS>
// CHECK JS_IR NATIVE:
// Mangled name: #<get-test3>(){}
// Public signature: /test3.<get-test3>|-7333791615083236686[0]
// Public signature debug description: <get-test3>(){}
get
// CHECK:
// Mangled name: {}test4
// Public signature: /test4|-9115637610245762085[0]
// Public signature debug description: {}test4
val test4: ErrorType
// CHECK JVM_IR:
// Mangled name: #<get-test4>(){}<ERROR CLASS>
// Mangled name for the signature computed from Ir: <get-test4>(){}<ERROR CLASS>
// Mangled name for the signature computed from Descriptor: <get-test4>(){}<Error class: unknown class>
// Public signature by IR: /test4.<get-test4>|-8718941795621950036[0]
// Public signature by IR debug description: <get-test4>(){}<ERROR CLASS>
// Public signature by Frontend: /test4.<get-test4>|-5181690683324812065[0]
// Public signature by Frontend debug description: <get-test4>(){}<Error class: unknown class>
get