Files
kotlin-fork/compiler/testData/ir/irText/expressions/multipleThisReferences.sig.kt.txt
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

77 lines
2.5 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: Host
// Public signature: /Host|null[0]
class Host {
// CHECK:
// Mangled name: Host{}y
// Public signature: /Host.y|3625903257357557171[0]
// Public signature debug description: {}y
val y: Int
// CHECK JVM_IR:
// Mangled name: Host#<get-y>(){}kotlin.Int
// Public signature: /Host.y.<get-y>|-6745575372101973707[0]
// Public signature debug description: <get-y>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: Host#<get-y>(){}
// Public signature: /Host.y.<get-y>|-7902422373892128922[0]
// Public signature debug description: <get-y>(){}
get
// CHECK:
// Mangled name: Host#<init>(kotlin.Int){}
// Public signature: /Host.<init>|-5182794243525578284[0]
// Public signature debug description: <init>(kotlin.Int){}
constructor(y: Int) /* primary */
// CHECK JVM_IR:
// Mangled name: Host#test@Outer(){}Outer.Inner
// Public signature: /Host.test|-982409629050476808[0]
// Public signature debug description: test@Outer(){}Outer.Inner
// CHECK JS_IR NATIVE:
// Mangled name: Host#test@Outer(){}
// Public signature: /Host.test|-3179256530033214921[0]
// Public signature debug description: test@Outer(){}
fun Outer.test(): Inner
}
// CHECK:
// Mangled name: Outer
// Public signature: /Outer|null[0]
class Outer {
// CHECK:
// Mangled name: Outer.Inner
// Public signature: /Outer.Inner|null[0]
open inner class Inner {
// CHECK:
// Mangled name: Outer.Inner{}x
// Public signature: /Outer.Inner.x|-8060530855978347579[0]
// Public signature debug description: {}x
val x: Int
// CHECK JVM_IR:
// Mangled name: Outer.Inner#<get-x>(){}kotlin.Int
// Public signature: /Outer.Inner.x.<get-x>|4966956098150895696[0]
// Public signature debug description: <get-x>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: Outer.Inner#<get-x>(){}
// Public signature: /Outer.Inner.x.<get-x>|1482705010654679335[0]
// Public signature debug description: <get-x>(){}
get
// CHECK:
// Mangled name: Outer.Inner#<init>(kotlin.Int){}
// Public signature: /Outer.Inner.<init>|-5182794243525578284[0]
// Public signature debug description: <init>(kotlin.Int){}
constructor(x: Int) /* primary */
}
// CHECK:
// Mangled name: Outer#<init>(){}
// Public signature: /Outer.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
}