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

27 lines
1.0 KiB
Kotlin
Vendored

// CHECK JVM_IR:
// Mangled name: #foo!kotlin.Int(){}kotlin.Int
// Public signature: /foo|-298514072419997277[0]
// Public signature debug description: foo!kotlin.Int(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #foo!kotlin.Int(){}
// Public signature: /foo|-2047845050892281405[0]
// Public signature debug description: foo!kotlin.Int(){}
fun foo($context_receiver_0: Int): Int
// CHECK JVM_IR:
// Mangled name: #foo!kotlin.Int!kotlin.String(){}kotlin.Int
// Public signature: /foo|7076979931255393427[0]
// Public signature debug description: foo!kotlin.Int!kotlin.String(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #foo!kotlin.Int!kotlin.String(){}
// Public signature: /foo|-6855876411691473491[0]
// Public signature debug description: foo!kotlin.Int!kotlin.String(){}
fun foo($context_receiver_0: Int, $context_receiver_1: String): Int
// CHECK:
// Mangled name: #test(){}
// Public signature: /test|6620506149988718649[0]
// Public signature debug description: test(){}
fun test(): Unit