Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.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

39 lines
1.1 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: Context
// Public signature: /Context|null[0]
class Context {
// CHECK:
// Mangled name: Context#<init>(){}
// Public signature: /Context.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
}
// CHECK JVM_IR:
// Mangled name: #f!Context(){}kotlin.String
// Public signature: /f|-5175802051654911360[0]
// Public signature debug description: f!Context(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #f!Context(){}
// Public signature: /f|-1050574650869165395[0]
// Public signature debug description: f!Context(){}
fun f($context_receiver_0: Context): String
// CHECK JVM_IR:
// Mangled name: #f(){}kotlin.Any
// Public signature: /f|-2324325393552926316[0]
// Public signature debug description: f(){}kotlin.Any
// CHECK JS_IR NATIVE:
// Mangled name: #f(){}
// Public signature: /f|5316533450599009716[0]
// Public signature debug description: f(){}
fun f(): Any
// CHECK:
// Mangled name: #test(){}
// Public signature: /test|6620506149988718649[0]
// Public signature debug description: test(){}
fun test(): Unit