Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.sig.kt.txt
T
Dmitriy Dolovov 02604060ae IR text tests: Don't dump signatures for local declarations
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
2023-11-30 08:32:35 +00:00

37 lines
1.1 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: A
// Public signature: /A|null[0]
class A<T : Any?> {
// CHECK:
// Mangled name: A#<init>!1:0(){}
// Public signature: /A.<init>|5547349096232763669[0]
// Public signature debug description: <init>!1:0(){}
constructor($context_receiver_0: T) /* primary */
}
// CHECK:
// Mangled name: B
// Public signature: /B|null[0]
class B<P : Any?> {
// CHECK:
// Mangled name: B#<init>!kotlin.collections.Collection<1:0>(){}
// Public signature: /B.<init>|-5453957848603821578[0]
// Public signature debug description: <init>!kotlin.collections.Collection<1:0>(){}
constructor($context_receiver_0: Collection<P>) /* primary */
}
// CHECK:
// Mangled name: #bar@kotlin.collections.Collection<kotlin.Int>(){}
// Public signature: /bar|-6231113953181180683[0]
// Public signature debug description: bar@kotlin.collections.Collection<kotlin.Int>(){}
fun Collection<Int>.bar(): Unit
// CHECK:
// Mangled name: #foo@kotlin.Int(){}
// Public signature: /foo|4521317896132265411[0]
// Public signature debug description: foo@kotlin.Int(){}
fun Int.foo(): Unit