69aeddcba8
We plan to disable computing full mangled names of declarations in all manglers except the IR mangler (see the subsequent commits). From now on, in irText tests we dump only the following mangled names: - Full mangled names computed using the IR mangler - Signature mangled names computed using the Descriptor mangler - Signature mangled names computed using the IR mangler - Signature mangled names computed using the FIR mangler Here by a full mangled name we mean the mangled name of a declaration computed using the `MangleMode.FULL` mode. Those mangled names include the mangled names of the declaration'a parents. By a signature mangled name we mean the mangled name of a declaration computed using the `MangleMode.SIGNATURE` mode. These mangled names are used to compute an `IdSignature` for the declaration, hence the name.
26 lines
1.2 KiB
Kotlin
Vendored
26 lines
1.2 KiB
Kotlin
Vendored
// CHECK:
|
|
// Mangled name: #outer(){0§<kotlin.Any?>}
|
|
// Public signature: /outer|-6093606212547620330[0]
|
|
// Public signature debug description: outer(){0§<kotlin.Any?>}
|
|
fun <TT : Any?> outer(): Unit
|
|
// CHECK:
|
|
// Mangled name: #outer(){0§<kotlin.Any?>}#test1#static(kotlin.Int;0:0){0§<kotlin.Any?>}
|
|
// Mangled name for the signature: outer(){0§<kotlin.Any?>}test1#static(kotlin.Int;0:0){0§<kotlin.Any?>}
|
|
local fun <T : Any?> test1(i: Int, j: T): Unit
|
|
|
|
// CHECK:
|
|
// Mangled name: #outer(){0§<kotlin.Any?>}#test2#static(kotlin.Int;kotlin.String){}
|
|
// Mangled name for the signature: outer(){0§<kotlin.Any?>}test2#static(kotlin.Int;kotlin.String){}
|
|
local fun test2(i: Int, j: String): Unit
|
|
|
|
// CHECK:
|
|
// Mangled name: #outer(){0§<kotlin.Any?>}#test3#static(kotlin.Array<out|kotlin.String>...){}
|
|
// Mangled name for the signature: outer(){0§<kotlin.Any?>}test3#static(kotlin.Array<out|kotlin.String>...){}
|
|
local fun test3(vararg args: String): Unit
|
|
|
|
// CHECK:
|
|
// Mangled name: #outer(){0§<kotlin.Any?>}#textExt1#static@kotlin.String(kotlin.Int;1:0){}
|
|
// Mangled name for the signature: outer(){0§<kotlin.Any?>}textExt1#static@kotlin.String(kotlin.Int;1:0){}
|
|
local fun String.textExt1(i: Int, j: TT): Unit
|
|
|