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
This commit is contained in:
Dmitriy Dolovov
2023-11-20 19:10:54 +01:00
committed by Space Team
parent 514ae0c813
commit 02604060ae
125 changed files with 259 additions and 1376 deletions
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// WITH_STDLIB
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57428
annotation class Ann
@@ -3,19 +3,6 @@
// Public signature: /test1|6005685442305498193[0]
// Public signature debug description: {}test1
val test1: Int /* by */
field
// CHECK JVM_IR:
// Mangled name (compatible mode: false): {}test1#<anonymous>#static(){}kotlin.Int
// Mangled name (compatible mode: true): test1$delegate#<anonymous>#static(){}kotlin.Int
// Mangled name for the signature (compatible mode: false): {}test1<anonymous>#static(){}kotlin.Int
// Mangled name for the signature (compatible mode: true): <anonymous>#static(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name (compatible mode: false): {}test1#<anonymous>#static(){}
// Mangled name (compatible mode: true): test1$delegate#<anonymous>#static(){}
// Mangled name for the signature (compatible mode: false): {}test1<anonymous>#static(){}
// Mangled name for the signature (compatible mode: true): <anonymous>#static(){}
local fun <anonymous>(): Int
// CHECK JVM_IR:
// Mangled name: #<get-test1>(){}kotlin.Int
// Public signature: /test1.<get-test1>|3978508226793108919[0]
@@ -1,5 +1,5 @@
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-60136
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR JS_IR NATIVE
// ^ KT-63724: all signatures match, but @Test5 has different value parameters structure
package ann
@@ -49,11 +49,6 @@ class Delegated : IFoo {
// Public signature: /Delegated.<init>|-657369904845510135[0]
// Public signature debug description: <init>(IFoo){}
constructor(foo: IFoo) /* primary */
// CHECK:
// Mangled name: Delegated.$$delegate_0
// Public signature: /Delegated.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_0: IFoo
// CHECK:
// Mangled name: Delegated@kotlin.String{}extProp
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57428
class Outer {
val x: Int = 1
@@ -7,15 +7,6 @@ class Inner {
// Public signature: /Inner.<init>|7428094623108856579[0]
// Public signature debug description: <init>!Outer(kotlin.Any){}
constructor($context_receiver_0: Outer, arg: Any) /* primary */
// CHECK JVM_IR:
// Mangled name: Inner.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
// CHECK JS_IR NATIVE:
// Mangled name: Inner.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
private /* final field */ val contextReceiverField0: Outer
// CHECK JVM_IR:
// Mangled name: Inner#bar(){}kotlin.Int
@@ -38,7 +29,6 @@ class Outer {
// Public signature: /Outer.x|-8060530855978347579[0]
// Public signature debug description: {}x
val x: Int
field
// CHECK JVM_IR:
// Mangled name: Outer#<get-x>(){}kotlin.Int
// Public signature: /Outer.x.<get-x>|4966956098150895696[0]
@@ -62,11 +52,4 @@ class Outer {
// Public signature: /f|-90367846469451219[0]
// Public signature debug description: f(Outer){}
fun f(outer: Outer): Unit
// CHECK JVM_IR:
// Mangled name: #f(Outer){}#<anonymous>#static@Outer(){}Inner
// Mangled name for the signature: f(Outer){}<anonymous>#static@Outer(){}Inner
// CHECK JS_IR NATIVE:
// Mangled name: #f(Outer){}#<anonymous>#static@Outer(){}
// Mangled name for the signature: f(Outer){}<anonymous>#static@Outer(){}
local fun Outer.<anonymous>(): Inner
@@ -29,15 +29,6 @@ class Test {
// Public signature: /Test.<init>|4848133296495274545[0]
// Public signature debug description: <init>!Context(){}
constructor($context_receiver_0: Context) /* primary */
// CHECK JVM_IR:
// Mangled name: Test.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
// CHECK JS_IR NATIVE:
// Mangled name: Test.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
private /* final field */ val contextReceiverField0: Context
// CHECK:
// Mangled name: Test#bar(){}
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57428
class O(val o: String)
@@ -7,7 +7,6 @@ class O {
// Public signature: /O.o|-5332571409865440260[0]
// Public signature debug description: {}o
val o: String
field
// CHECK JVM_IR:
// Mangled name: O#<get-o>(){}kotlin.String
// Public signature: /O.o.<get-o>|2606027183154875572[0]
@@ -35,7 +34,6 @@ class OK {
// Public signature: /OK.k|2162811783424158931[0]
// Public signature debug description: {}k
val k: String
field
// CHECK JVM_IR:
// Mangled name: OK#<get-k>(){}kotlin.String
// Public signature: /OK.k.<get-k>|-8248201737917988340[0]
@@ -51,7 +49,6 @@ class OK {
// Public signature: /OK.result|456251868630197251[0]
// Public signature debug description: {}result
val result: String
field
// CHECK JVM_IR:
// Mangled name: OK#<get-result>(){}kotlin.String
// Public signature: /OK.result.<get-result>|8441547134620975366[0]
@@ -67,15 +64,6 @@ class OK {
// Public signature: /OK.<init>|-804847331171011326[0]
// Public signature debug description: <init>!O(kotlin.String){}
constructor($context_receiver_0: O, k: String) /* primary */
// CHECK JVM_IR:
// Mangled name: OK.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
// CHECK JS_IR NATIVE:
// Mangled name: OK.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
private /* final field */ val contextReceiverField0: O
}
@@ -88,11 +76,4 @@ class OK {
// Public signature: /box|2173511048851971368[0]
// Public signature debug description: box(){}
fun box(): String
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String#<anonymous>#static@O(){}kotlin.String
// Mangled name for the signature: box(){}kotlin.String<anonymous>#static@O(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}#<anonymous>#static@O(){}
// Mangled name for the signature: box(){}<anonymous>#static@O(){}
local fun O.<anonymous>(): String
@@ -95,15 +95,6 @@ class Result {
// Public signature: /Result.<init>|-1392650824251324893[0]
// Public signature debug description: <init>!kotlin.Int(){}
constructor($context_receiver_0: Int) /* primary */
// CHECK JVM_IR:
// Mangled name: Result.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
// CHECK JS_IR NATIVE:
// Mangled name: Result.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
private /* final field */ val contextReceiverField0: Int
}
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57428
class C {
val c = 42
@@ -7,7 +7,6 @@ class C {
// Public signature: /C.c|-4416962153448040627[0]
// Public signature debug description: {}c
val c: Int
field
// CHECK JVM_IR:
// Mangled name: C#<get-c>(){}kotlin.Int
// Public signature: /C.c.<get-c>|-2440337234483931882[0]
@@ -31,10 +30,6 @@ class C {
// Public signature: /bar|-380723744805794672[0]
// Public signature debug description: bar(C){}
fun bar(c: C): Unit
// CHECK:
// Mangled name: #bar(C){}#<anonymous>#static@C(){}
// Mangled name for the signature: bar(C){}<anonymous>#static@C(){}
local fun C.<anonymous>(): Unit
// CHECK:
// Mangled name: #foo!C(){}
@@ -7,15 +7,6 @@ class A<T : Any?> {
// Public signature: /A.<init>|5547349096232763669[0]
// Public signature debug description: <init>!1:0(){}
constructor($context_receiver_0: T) /* primary */
// CHECK JVM_IR:
// Mangled name: A.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
// CHECK JS_IR NATIVE:
// Mangled name: A.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
private /* final field */ val contextReceiverField0: T
}
@@ -28,15 +19,6 @@ class B<P : Any?> {
// Public signature: /B.<init>|-5453957848603821578[0]
// Public signature debug description: <init>!kotlin.collections.Collection<1:0>(){}
constructor($context_receiver_0: Collection<P>) /* primary */
// CHECK JVM_IR:
// Mangled name: B.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
// CHECK JS_IR NATIVE:
// Mangled name: B.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
private /* final field */ val contextReceiverField0: Collection<P>
}
@@ -179,15 +179,6 @@ class CounterIterator : Iterator<Int> {
// Public signature: /CounterIterator.<init>|4731448293962665986[0]
// Public signature debug description: <init>!CounterConfig(Counter){}
constructor($context_receiver_0: CounterConfig, counter: Counter) /* primary */
// CHECK JVM_IR:
// Mangled name: CounterIterator.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
// CHECK JS_IR NATIVE:
// Mangled name: CounterIterator.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
private /* final field */ val contextReceiverField0: CounterConfig
// CHECK JVM_IR:
// Mangled name: CounterIterator#hasNext(){}kotlin.Boolean
@@ -7,24 +7,6 @@ class MyClass {
// Public signature: /MyClass.<init>|1062323742830185042[0]
// Public signature debug description: <init>!kotlin.Unit!kotlin.Int(){}
constructor($context_receiver_0: Unit, $context_receiver_1: Int) /* primary */
// CHECK JVM_IR:
// Mangled name: MyClass.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
// CHECK JS_IR NATIVE:
// Mangled name: MyClass.contextReceiverField0
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
private /* final field */ val contextReceiverField0: Unit
// CHECK JVM_IR:
// Mangled name: MyClass.contextReceiverField1
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField1#jf
// CHECK JS_IR NATIVE:
// Mangled name: MyClass.contextReceiverField1
// Mangled name for the signature computed from Ir:
// Mangled name for the signature computed from Descriptor: {}contextReceiverField1
private /* final field */ val contextReceiverField1: Int
}
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57428
interface Lazy<T>
@@ -10,50 +10,6 @@ interface Lazy<T : Any?> {
// Public signature: /f|-6064829949850642050[0]
// Public signature debug description: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<0:0>;Lazy<Lazy<0:0>>){0§<kotlin.Any?>}
fun <T : Any?> f(lazy1: Lazy<Int>, lazy2: Lazy<CharSequence>, lazyT: Lazy<T>, lazyLazyT: Lazy<Lazy<T>>): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<kotlin.Int>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<kotlin.Int>(){}
local fun Lazy<Int>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<kotlin.Int>(){}#<anonymous>#static@Lazy<kotlin.CharSequence>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<kotlin.Int>(){}<anonymous>#static@Lazy<kotlin.CharSequence>(){}
local fun Lazy<CharSequence>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<kotlin.CharSequence>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<kotlin.CharSequence>(){}
local fun Lazy<CharSequence>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<kotlin.CharSequence>(){}#<anonymous>#static@Lazy<kotlin.Int>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<kotlin.CharSequence>(){}<anonymous>#static@Lazy<kotlin.Int>(){}
local fun Lazy<Int>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<1:0>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<1:0>(){}
local fun Lazy<T>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<2:0>(){}#<anonymous>#static@Lazy<kotlin.Int>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<2:0>(){}<anonymous>#static@Lazy<kotlin.Int>(){}
local fun Lazy<Int>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<Lazy<1:0>>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<Lazy<1:0>>(){}
local fun Lazy<Lazy<T>>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<Lazy<2:0>>(){}#<anonymous>#static@Lazy<kotlin.Int>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<Lazy<2:0>>(){}<anonymous>#static@Lazy<kotlin.Int>(){}
local fun Lazy<Int>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<kotlin.Int>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<1:0>;Lazy<Lazy<1:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<kotlin.Int>(){}
local fun Lazy<Int>.<anonymous>(): Unit
// CHECK:
// Mangled name: #f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}#<anonymous>#static@Lazy<kotlin.Int>(){}#<anonymous>#static@Lazy<Lazy<2:0>>(){}
// Mangled name for the signature: f(Lazy<kotlin.Int>;Lazy<kotlin.CharSequence>;Lazy<2:0>;Lazy<Lazy<2:0>>){0§<kotlin.Any?>}<anonymous>#static@Lazy<kotlin.Int>(){}<anonymous>#static@Lazy<Lazy<2:0>>(){}
local fun Lazy<Lazy<T>>.<anonymous>(): Unit
// CHECK:
// Mangled name: #test1!Lazy<kotlin.Int>!Lazy<kotlin.CharSequence>(){}
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57428
class Context
@@ -35,11 +35,4 @@ fun f(): Any
// Public signature: /test|6620506149988718649[0]
// Public signature debug description: test(){}
fun test(): Unit
// CHECK JVM_IR:
// Mangled name: #test(){}#<anonymous>#static@Context(){}kotlin.Int
// Mangled name for the signature: test(){}<anonymous>#static@Context(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #test(){}#<anonymous>#static@Context(){}
// Mangled name for the signature: test(){}<anonymous>#static@Context(){}
local fun Context.<anonymous>(): Int
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57428
context(Int, String)
fun foo(): Int {
@@ -23,11 +23,4 @@ fun foo($context_receiver_0: Int, $context_receiver_1: String): Int
// Public signature: /test|6620506149988718649[0]
// Public signature debug description: test(){}
fun test(): Unit
// CHECK JVM_IR:
// Mangled name: #test(){}#<anonymous>#static@kotlin.Int(){}kotlin.Int
// Mangled name for the signature: test(){}<anonymous>#static@kotlin.Int(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #test(){}#<anonymous>#static@kotlin.Int(){}
// Mangled name for the signature: test(){}<anonymous>#static@kotlin.Int(){}
local fun Int.<anonymous>(): Int
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57428
context(T)
fun <T> useContext(block: (T) -> Unit) { }
@@ -3,14 +3,6 @@
// Public signature: /test|6620506149988718649[0]
// Public signature debug description: test(){}
fun test(): Unit
// CHECK:
// Mangled name: #test(){}#<anonymous>#static@kotlin.Int(){}
// Mangled name for the signature: test(){}<anonymous>#static@kotlin.Int(){}
local fun Int.<anonymous>(): Unit
// CHECK:
// Mangled name: #test(){}#<anonymous>#static@kotlin.Int(){}#<anonymous>#static(kotlin.Int){}
// Mangled name for the signature: test(){}<anonymous>#static@kotlin.Int(){}<anonymous>#static(kotlin.Int){}
local fun <anonymous>(i: Int): Unit
// CHECK:
// Mangled name: #useContext!0:0(kotlin.Function1<0:0,kotlin.Unit>){0§<kotlin.Any?>}
@@ -1,8 +1,4 @@
// FIR_IDENTICAL
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^KT-57434
fun test1(x: Int, y: Int = 0, z: String = "abc") {
fun local(xx: Int = x, yy: Int = y, zz: String = z) {}
@@ -3,8 +3,4 @@
// Public signature: /test1|-2420205866450198550[0]
// Public signature debug description: test1(kotlin.Int;kotlin.Int;kotlin.String){}
fun test1(x: Int, y: Int, z: String): Unit
// CHECK:
// Mangled name: #test1(kotlin.Int;kotlin.Int;kotlin.String){}#local#static(kotlin.Int;kotlin.Int;kotlin.String){}
// Mangled name for the signature: test1(kotlin.Int;kotlin.Int;kotlin.String){}local#static(kotlin.Int;kotlin.Int;kotlin.String){}
local fun local(xx: Int, yy: Int, zz: String): Unit
@@ -67,15 +67,6 @@ class Derived : DerivedBase, Base {
// Public signature debug description: <init>(){}
constructor() /* primary */
// CHECK JVM_IR:
// Mangled name: foo.Derived.$$delegate_0
// Public signature: foo/Derived.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
// CHECK JS_IR NATIVE:
// Mangled name: foo.Derived.$$delegate_0
// Public signature: foo/Derived.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_0: Base
// CHECK JVM_IR:
// Mangled name: foo.Derived#foo(kotlin.String){}kotlin.String
// Public signature: foo/Derived.foo|-5534735991146511619[0]
// Public signature debug description: foo(kotlin.String){}kotlin.String
@@ -97,15 +88,6 @@ class Derived1 : DerivedBase, Base {
// Public signature debug description: <init>(){}
constructor() /* primary */
// CHECK JVM_IR:
// Mangled name: foo.Derived1.$$delegate_0
// Public signature: foo/Derived1.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
// CHECK JS_IR NATIVE:
// Mangled name: foo.Derived1.$$delegate_0
// Public signature: foo/Derived1.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_0: Base
// CHECK JVM_IR:
// Mangled name: foo.Derived1#foo(kotlin.String){}kotlin.String
// Public signature: foo/Derived1.foo|-5534735991146511619[0]
// Public signature debug description: foo(kotlin.String){}kotlin.String
@@ -104,24 +104,6 @@ class Derived : DerivedBase, Base, Base2 {
// Public signature debug description: <init>(){}
constructor() /* primary */
// CHECK JVM_IR:
// Mangled name: foo.Derived.$$delegate_0
// Public signature: foo/Derived.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
// CHECK JS_IR NATIVE:
// Mangled name: foo.Derived.$$delegate_0
// Public signature: foo/Derived.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_0: Base
// CHECK JVM_IR:
// Mangled name: foo.Derived.$$delegate_1
// Public signature: foo/Derived.$$delegate_1|-7286425919675154353[0]
// Public signature debug description:
// CHECK JS_IR NATIVE:
// Mangled name: foo.Derived.$$delegate_1
// Public signature: foo/Derived.$$delegate_1|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_1: Base2
// CHECK JVM_IR:
// Mangled name: foo.Derived#bar(kotlin.String){}kotlin.String
// Public signature: foo/Derived.bar|2000415168157940991[0]
// Public signature debug description: bar(kotlin.String){}kotlin.String
@@ -153,24 +135,6 @@ class Derived1 : DerivedBase, Base, Base2 {
// Public signature debug description: <init>(){}
constructor() /* primary */
// CHECK JVM_IR:
// Mangled name: foo.Derived1.$$delegate_0
// Public signature: foo/Derived1.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
// CHECK JS_IR NATIVE:
// Mangled name: foo.Derived1.$$delegate_0
// Public signature: foo/Derived1.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_0: Base
// CHECK JVM_IR:
// Mangled name: foo.Derived1.$$delegate_1
// Public signature: foo/Derived1.$$delegate_1|-7286425919675154353[0]
// Public signature debug description:
// CHECK JS_IR NATIVE:
// Mangled name: foo.Derived1.$$delegate_1
// Public signature: foo/Derived1.$$delegate_1|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_1: Base2
// CHECK JVM_IR:
// Mangled name: foo.Derived1#bar(kotlin.String){}kotlin.String
// Public signature: foo/Derived1.bar|2000415168157940991[0]
// Public signature debug description: bar(kotlin.String){}kotlin.String
@@ -202,24 +166,6 @@ class Derived2 : DerivedBase, Base, Base2 {
// Public signature debug description: <init>(){}
constructor() /* primary */
// CHECK JVM_IR:
// Mangled name: foo.Derived2.$$delegate_0
// Public signature: foo/Derived2.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
// CHECK JS_IR NATIVE:
// Mangled name: foo.Derived2.$$delegate_0
// Public signature: foo/Derived2.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_0: Base
// CHECK JVM_IR:
// Mangled name: foo.Derived2.$$delegate_1
// Public signature: foo/Derived2.$$delegate_1|-7286425919675154353[0]
// Public signature debug description:
// CHECK JS_IR NATIVE:
// Mangled name: foo.Derived2.$$delegate_1
// Public signature: foo/Derived2.$$delegate_1|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_1: Base2
// CHECK JVM_IR:
// Mangled name: foo.Derived2#bar(kotlin.String){}kotlin.String
// Public signature: foo/Derived2.bar|2000415168157940991[0]
// Public signature debug description: bar(kotlin.String){}kotlin.String
@@ -7,11 +7,6 @@ class A : I {
// Public signature: /A.<init>|605687824747116295[0]
// Public signature debug description: <init>(I){}
constructor(i: I) /* primary */
// CHECK:
// Mangled name: A.$$delegate_0
// Public signature: /A.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_0: I
// CHECK:
// Mangled name: A@0:0{0§<kotlin.Any?>}id
@@ -1,8 +1,4 @@
// FIR_IDENTICAL
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57430
fun outer() {
abstract class ALocal {
@@ -3,93 +3,4 @@
// Public signature: /outer|1607449560170809066[0]
// Public signature debug description: outer(){}
fun outer(): Unit
// CHECK:
// Mangled name: #outer(){}.ALocal
// Mangled name for the signature: outer(){}
local abstract class ALocal {
// CHECK:
// Mangled name: #outer(){}.ALocal#<init>(){}
// Mangled name for the signature: outer(){}<init>(){}
constructor() /* primary */
// CHECK:
// Mangled name: #outer(){}.ALocal#afun(){}
// Mangled name for the signature: outer(){}afun(){}
abstract fun afun(): Unit
// CHECK:
// Mangled name: #outer(){}.ALocal{}aval
// Mangled name for the signature: outer(){}{}aval
abstract val aval: Int
// CHECK JVM_IR:
// Mangled name: #outer(){}.ALocal#<get-aval>(){}kotlin.Int
// Mangled name for the signature: outer(){}<get-aval>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #outer(){}.ALocal#<get-aval>(){}
// Mangled name for the signature: outer(){}<get-aval>(){}
abstract get
// CHECK:
// Mangled name: #outer(){}.ALocal{}avar
// Mangled name for the signature: outer(){}{}avar
abstract var avar: Int
// CHECK JVM_IR:
// Mangled name: #outer(){}.ALocal#<get-avar>(){}kotlin.Int
// Mangled name for the signature: outer(){}<get-avar>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #outer(){}.ALocal#<get-avar>(){}
// Mangled name for the signature: outer(){}<get-avar>(){}
abstract get
// CHECK:
// Mangled name: #outer(){}.ALocal#<set-avar>(kotlin.Int){}
// Mangled name for the signature: outer(){}<set-avar>(kotlin.Int){}
abstract set
}
// CHECK:
// Mangled name: #outer(){}.Local
// Mangled name for the signature: outer(){}
local class Local : ALocal {
// CHECK:
// Mangled name: #outer(){}.Local{}aval
// Mangled name for the signature: outer(){}{}aval
override val aval: Int
field
// CHECK JVM_IR:
// Mangled name: #outer(){}.Local#<get-aval>(){}kotlin.Int
// Mangled name for the signature: outer(){}<get-aval>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #outer(){}.Local#<get-aval>(){}
// Mangled name for the signature: outer(){}<get-aval>(){}
override get
// CHECK:
// Mangled name: #outer(){}.Local{}avar
// Mangled name for the signature: outer(){}{}avar
override var avar: Int
field
// CHECK JVM_IR:
// Mangled name: #outer(){}.Local#<get-avar>(){}kotlin.Int
// Mangled name for the signature: outer(){}<get-avar>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #outer(){}.Local#<get-avar>(){}
// Mangled name for the signature: outer(){}<get-avar>(){}
override get
// CHECK:
// Mangled name: #outer(){}.Local#<set-avar>(kotlin.Int){}
// Mangled name for the signature: outer(){}<set-avar>(kotlin.Int){}
override set
// CHECK:
// Mangled name: #outer(){}.Local#<init>(){}
// Mangled name for the signature: outer(){}<init>(){}
constructor() /* primary */
// CHECK:
// Mangled name: #outer(){}.Local#afun(){}
// Mangled name for the signature: outer(){}afun(){}
override fun afun(): Unit
}
@@ -13,21 +13,31 @@ class C2 : C1 {
// CHECK JVM_IR:
// Mangled name: C2#f(){}kotlin.String
// Mangled name for the signature: f(){}kotlin.String
// Public signature: /C2.f|9098388873611041001[0]
// Public signature debug description: f(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: C2#f(){}
// Mangled name for the signature: f(){}
// Public signature: /C2.f|5316533450599009716[0]
// Public signature debug description: f(){}
/* fake */ override fun f(): String
// CHECK:
// Mangled name: C2{}p
// Mangled name for the signature: {}p
// Public signature: /C2.p|6715504260787941082[0]
// Public signature debug description: {}p
/* fake */ override val p: Int
// CHECK JVM_IR:
// Mangled name: C2#<get-p>(){}kotlin.Int
// Mangled name for the signature: <get-p>(){}kotlin.Int
// Public signature: /C2.p.<get-p>|5329635969197638839[0]
// Public signature debug description: <get-p>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: C2#<get-p>(){}
// Mangled name for the signature: <get-p>(){}
// Public signature: /C2.p.<get-p>|-1162552463316289847[0]
// Public signature debug description: <get-p>(){}
/* fake */ override get(): Int
}
@@ -8,11 +8,6 @@ class Test<TT : Any?> : IBase<TT> {
// Public signature debug description: <init>(IBase<1:0>){}
constructor(impl: IBase<TT>) /* primary */
// CHECK:
// Mangled name: Test.$$delegate_0
// Public signature: /Test.$$delegate_0|-7286425919675154353[0]
// Public signature debug description:
private /* final field */ val $$delegate_0: IBase<TT>
// CHECK:
// Mangled name: Test#foo(kotlin.Int){}
// Public signature: /Test.foo|-104159190164110731[0]
// Public signature debug description: foo(kotlin.Int){}
@@ -1,8 +1,4 @@
// FIR_IDENTICAL
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57434
fun <TT> outer() {
fun <T> test1(i: Int, j: T) {}
@@ -3,23 +3,4 @@
// Public signature: /outer|-6093606212547620330[0]
// Public signature debug description: outer(){0§<kotlin.Any?>}
fun <TT : Any?> outer(): Unit
// CHECK:
// Mangled name: #outer(){0§<kotlin.Any?>}#test1#static(kotlin.Int;0:0){0§<kotlin.Any?>}
// Mangled name for the signature: outer(){0§<kotlin.Any?>}test1#static(kotlin.Int;0:0){0§<kotlin.Any?>}
local fun <T : Any?> test1(i: Int, j: T): Unit
// CHECK:
// Mangled name: #outer(){0§<kotlin.Any?>}#test2#static(kotlin.Int;kotlin.String){}
// Mangled name for the signature: outer(){0§<kotlin.Any?>}test2#static(kotlin.Int;kotlin.String){}
local fun test2(i: Int, j: String): Unit
// CHECK:
// Mangled name: #outer(){0§<kotlin.Any?>}#test3#static(kotlin.Array<out|kotlin.String>...){}
// Mangled name for the signature: outer(){0§<kotlin.Any?>}test3#static(kotlin.Array<out|kotlin.String>...){}
local fun test3(vararg args: String): Unit
// CHECK:
// Mangled name: #outer(){0§<kotlin.Any?>}#textExt1#static@kotlin.String(kotlin.Int;1:0){}
// Mangled name for the signature: outer(){0§<kotlin.Any?>}textExt1#static@kotlin.String(kotlin.Int;1:0){}
local fun String.textExt1(i: Int, j: TT): Unit
@@ -1,8 +1,4 @@
// FIR_IDENTICAL
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57434
class Delegate(val value: String) {
operator fun getValue(thisRef: Any?, property: Any?) = value
@@ -7,7 +7,6 @@ class Delegate {
// Public signature: /Delegate.value|1987073854177347439[0]
// Public signature debug description: {}value
val value: String
field
// CHECK JVM_IR:
// Mangled name: Delegate#<get-value>(){}kotlin.String
// Public signature: /Delegate.value.<get-value>|-7202092821145242726[0]
@@ -45,7 +44,6 @@ class DelegateProvider {
// Public signature: /DelegateProvider.value|1987073854177347439[0]
// Public signature debug description: {}value
val value: String
field
// CHECK JVM_IR:
// Mangled name: DelegateProvider#<get-value>(){}kotlin.String
// Public signature: /DelegateProvider.value.<get-value>|-7202092821145242726[0]
@@ -79,11 +77,4 @@ class DelegateProvider {
// Public signature: /foo|-1041209573719867811[0]
// Public signature debug description: foo(){}
fun foo(): Unit
// CHECK JVM_IR:
// Mangled name: #foo(){}#<get-testMember>#static(){}kotlin.String
// Mangled name for the signature: foo(){}<get-testMember>#static(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #foo(){}#<get-testMember>#static(){}
// Mangled name for the signature: foo(){}<get-testMember>#static(){}
local fun <get-testMember>(): String
@@ -1,9 +1,5 @@
// FIR_IDENTICAL
// WITH_STDLIB
// DUMP_LOCAL_DECLARATION_SIGNATURES
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57434
class MyClass(val value: String)
@@ -7,7 +7,6 @@ class MyClass {
// Public signature: /MyClass.value|1987073854177347439[0]
// Public signature debug description: {}value
val value: String
field
// CHECK JVM_IR:
// Mangled name: MyClass#<get-value>(){}kotlin.String
// Public signature: /MyClass.value.<get-value>|-7202092821145242726[0]
@@ -35,21 +34,6 @@ class MyClass {
// Public signature: /box|2173511048851971368[0]
// Public signature debug description: box(){}
fun box(): String
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String#<get-testO>#static(){}kotlin.String
// Mangled name for the signature: box(){}kotlin.String<get-testO>#static(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}#<get-testO>#static(){}
// Mangled name for the signature: box(){}<get-testO>#static(){}
local fun <get-testO>(): String
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String#<get-testK>#static(){}kotlin.String
// Mangled name for the signature: box(){}kotlin.String<get-testK>#static(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}#<get-testK>#static(){}
// Mangled name for the signature: box(){}<get-testK>#static(){}
local fun <get-testK>(): String
// CHECK JVM_IR:
// Mangled name: #getValue@kotlin.String(kotlin.Any?;kotlin.Any){}kotlin.String