02604060ae
1. Local declarations don't participate in IR-linkage, because they can be referenced only inside the same body -> can be dropped from IR text tests. 2. Mangled names for private declarations computed by descriptors/fir are actually not used anywhere (they are recomputed by IR immediately before serialization of IR). But sometimes such mangled names diverge between K1 and K2 -> don't check them, but always check mangled names computed by IR even for private declarations. 3. Also: Drop DUMP_LOCAL_DECLARATION_SIGNATURES test directive. ^KT-57428 Obsolete ^KT-57430 Obsolete ^KT-57434 Obsolete ^KT-57778 Obsolete ^KT-57775 Obsolete
41 lines
1.5 KiB
Kotlin
Vendored
41 lines
1.5 KiB
Kotlin
Vendored
// CHECK:
|
|
// Mangled name: WithCompanion
|
|
// Public signature: /WithCompanion|null[0]
|
|
open class WithCompanion {
|
|
// CHECK:
|
|
// Mangled name: WithCompanion.Companion
|
|
// Public signature: /WithCompanion.Companion|null[0]
|
|
companion object Companion {
|
|
// CHECK:
|
|
// Mangled name: WithCompanion.Companion#<init>(){}
|
|
// Public signature: /WithCompanion.Companion.<init>|-5645683436151566731[0]
|
|
// Public signature debug description: <init>(){}
|
|
private constructor() /* primary */
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: WithCompanion.Companion#foo(){}WithCompanion.Companion
|
|
// Public signature: /WithCompanion.Companion.foo|3115869173477949534[0]
|
|
// Public signature debug description: foo(){}WithCompanion.Companion
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: WithCompanion.Companion#foo(){}
|
|
// Public signature: /WithCompanion.Companion.foo|-1041209573719867811[0]
|
|
// Public signature debug description: foo(){}
|
|
fun foo(): Companion
|
|
|
|
}
|
|
|
|
// CHECK:
|
|
// Mangled name: WithCompanion#<init>(WithCompanion.Companion){}
|
|
// Public signature: /WithCompanion.<init>|-2521748254232742494[0]
|
|
// Public signature debug description: <init>(WithCompanion.Companion){}
|
|
constructor(a: Companion) /* primary */
|
|
|
|
}
|
|
|
|
// CHECK:
|
|
// Mangled name: #test@WithCompanion(){}
|
|
// Public signature: /test|4153745090133876513[0]
|
|
// Public signature debug description: test@WithCompanion(){}
|
|
fun WithCompanion.test(): Unit
|
|
|