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:
committed by
Space Team
parent
514ae0c813
commit
02604060ae
@@ -7,11 +7,6 @@ class Test1 : IBase {
|
||||
// Public signature: /Test1.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: Test1.$$delegate_0
|
||||
// Public signature: /Test1.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: BaseImpl
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test1#bar(){}kotlin.Int
|
||||
// Public signature: /Test1.bar|-6436649210114349217[0]
|
||||
@@ -45,16 +40,6 @@ class Test2 : IBase, IOther {
|
||||
// Public signature: /Test2.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: Test2.$$delegate_0
|
||||
// Public signature: /Test2.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: BaseImpl
|
||||
// CHECK:
|
||||
// Mangled name: Test2.$$delegate_1
|
||||
// Public signature: /Test2.$$delegate_1|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_1: IOther
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test2#bar(){}kotlin.Int
|
||||
// Public signature: /Test2.bar|-6436649210114349217[0]
|
||||
|
||||
-5
@@ -8,11 +8,6 @@ class C : IFooBar {
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: C.$$delegate_0
|
||||
// Public signature: /C.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: FooBarImpl
|
||||
// CHECK:
|
||||
// Mangled name: C#foo(){}
|
||||
// Public signature: /C.foo|-1041209573719867811[0]
|
||||
// Public signature debug description: foo(){}
|
||||
|
||||
+2
-8
@@ -1,12 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57775
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR JS_IR_ES6 NATIVE
|
||||
// ^ KT-61141: absent enum fake_overrides: finalize (K1), getDeclaringClass (K1), clone (K2)
|
||||
|
||||
enum class TestEnum1 {
|
||||
TEST1, TEST2
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57775
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR JS_IR_ES6 NATIVE
|
||||
// ^ KT-61141: absent enum fake_overrides: finalize (K1), getDeclaringClass (K1), clone (K2)
|
||||
|
||||
enum class TestFinalEnum1 {
|
||||
X1
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57775
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR JS_IR_ES6 NATIVE
|
||||
// ^ KT-61141: absent enum fake_overrides: finalize (K1), getDeclaringClass (K1), clone (K2)
|
||||
|
||||
enum class A {
|
||||
X("asd"),
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57775
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize(K1), getDeclaringClass(K1), clone(K2),
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR JS_IR_ES6 NATIVE
|
||||
// ^ KT-61141: absent enum fake_overrides: finalize (K1), getDeclaringClass (K1), clone (K2)
|
||||
|
||||
enum class Test0(val x: Int) {
|
||||
ZERO;
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57788
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
||||
// ^ KT-57788: Fix computing mangled names of types with @EnhancedNullability from IR-based declaration descriptors
|
||||
|
||||
// FILE: implicitNotNullOnDelegatedImplementation.kt
|
||||
interface IFoo {
|
||||
|
||||
-25
@@ -79,11 +79,6 @@ class TestJFoo : IFoo {
|
||||
// Public signature: /TestJFoo.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: TestJFoo.$$delegate_0
|
||||
// Public signature: /TestJFoo.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: JFoo
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestJFoo#foo(){}kotlin.String
|
||||
// Public signature: /TestJFoo.foo|485335955883620819[0]
|
||||
@@ -101,11 +96,6 @@ class TestK1 : IFoo {
|
||||
// Public signature: /TestK1.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: TestK1.$$delegate_0
|
||||
// Public signature: /TestK1.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: K1
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestK1#foo(){}kotlin.String
|
||||
// Public signature: /TestK1.foo|485335955883620819[0]
|
||||
@@ -123,11 +113,6 @@ class TestK2 : IFoo {
|
||||
// Public signature: /TestK2.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: TestK2.$$delegate_0
|
||||
// Public signature: /TestK2.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: K2
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestK2#foo(){}kotlin.String
|
||||
// Public signature: /TestK2.foo|485335955883620819[0]
|
||||
@@ -145,11 +130,6 @@ class TestK3 : IFoo {
|
||||
// Public signature: /TestK3.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: TestK3.$$delegate_0
|
||||
// Public signature: /TestK3.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: K3
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestK3#foo(){}kotlin.String
|
||||
// Public signature: /TestK3.foo|485335955883620819[0]
|
||||
@@ -167,11 +147,6 @@ class TestK4 : IFoo {
|
||||
// Public signature: /TestK4.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: TestK4.$$delegate_0
|
||||
// Public signature: /TestK4.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: K4
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestK4#foo(){}kotlin.String
|
||||
// Public signature: /TestK4.foo|485335955883620819[0]
|
||||
|
||||
+2
-3
@@ -1,8 +1,7 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430, KT-57788
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
||||
// ^ KT-57788: Fix computing mangled names of types with @EnhancedNullability from IR-based declaration descriptors
|
||||
|
||||
// FILE: kt43217.kt
|
||||
class A {
|
||||
|
||||
+4
-44
@@ -7,49 +7,9 @@ class A {
|
||||
// Public signature: /A.b|772347207915745207[0]
|
||||
// Public signature debug description: {}b
|
||||
private val b: <no name provided>
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): A{}b.<no name provided>
|
||||
// Mangled name (compatible mode: true): A.b.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}b
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
local class <no name provided> : DoubleExpression {
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): A{}b.<no name provided>#<init>(){}
|
||||
// Mangled name (compatible mode: true): A.b.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature (compatible mode: false): {}b<init>(){}
|
||||
// Mangled name for the signature (compatible mode: true): <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): A{}b.<no name provided>#isEqualTo(kotlin.Double){}kotlin.Any{EnhancedNullability}
|
||||
// Mangled name (compatible mode: true): A.b.<no name provided>#isEqualTo(kotlin.Double){}kotlin.Any{EnhancedNullability}
|
||||
// Mangled name for the signature (compatible mode: false): {}bisEqualTo(kotlin.Double){}kotlin.Any{EnhancedNullability}
|
||||
// Mangled name for the signature (compatible mode: true): isEqualTo(kotlin.Double){}kotlin.Any{EnhancedNullability}
|
||||
@Override
|
||||
/* fake */ override fun isEqualTo(value: Double): @EnhancedNullability Any
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): A{}b.<no name provided>#isEqualTo(kotlin.Double{EnhancedNullability}){}kotlin.Any{EnhancedNullability}
|
||||
// Mangled name (compatible mode: true): A.b.<no name provided>#isEqualTo(kotlin.Double{EnhancedNullability}){}kotlin.Any{EnhancedNullability}
|
||||
// Mangled name for the signature (compatible mode: false): {}bisEqualTo(kotlin.Double{EnhancedNullability}){}kotlin.Any{EnhancedNullability}
|
||||
// Mangled name for the signature (compatible mode: true): isEqualTo(kotlin.Double{EnhancedNullability}){}kotlin.Any{EnhancedNullability}
|
||||
/* fake */ override fun isEqualTo(value: @EnhancedNullability Double): @EnhancedNullability Any
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): A{}b.<no name provided>#get(){}kotlin.Double
|
||||
// Mangled name (compatible mode: true): A.b.<no name provided>#get(){}kotlin.Double
|
||||
// Mangled name for the signature (compatible mode: false): {}bget(){}kotlin.Double
|
||||
// Mangled name for the signature (compatible mode: true): get(){}kotlin.Double
|
||||
override fun get(): Double
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): A#<get-b>(){}A{}b.<no name provided>
|
||||
// Mangled name (compatible mode: true): A#<get-b>(){}A.b.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): <get-b>(){}A{}b.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: true): <get-b>(){}A.b.<no name provided>
|
||||
// Public signature: /A.b.<get-b>|-6508357397455690228[0]
|
||||
// Public signature debug description: <get-b>(){}A{}b.<no name provided>
|
||||
private get
|
||||
@@ -72,20 +32,20 @@ class C : DoubleExpression {
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// CHECK:
|
||||
// Mangled name: C#isEqualTo(kotlin.Double){}kotlin.Any{EnhancedNullability}
|
||||
// Public signature: /C.isEqualTo|6549516741996743028[0]
|
||||
// Public signature debug description: isEqualTo(kotlin.Double){}kotlin.Any{EnhancedNullability}
|
||||
@Override
|
||||
/* fake */ override fun isEqualTo(value: Double): @EnhancedNullability Any
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// CHECK:
|
||||
// Mangled name: C#isEqualTo(kotlin.Double{EnhancedNullability}){}kotlin.Any{EnhancedNullability}
|
||||
// Public signature: /C.isEqualTo|3976283770497294654[0]
|
||||
// Public signature debug description: isEqualTo(kotlin.Double{EnhancedNullability}){}kotlin.Any{EnhancedNullability}
|
||||
/* fake */ override fun isEqualTo(value: @EnhancedNullability Double): @EnhancedNullability Any
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// CHECK:
|
||||
// Mangled name: C#get(){}kotlin.Double
|
||||
// Public signature: /C.get|-8276149070669614990[0]
|
||||
// Public signature debug description: get(){}kotlin.Double
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430
|
||||
|
||||
fun outer() {
|
||||
class LocalClass {
|
||||
|
||||
@@ -3,19 +3,4 @@
|
||||
// Public signature: /outer|1607449560170809066[0]
|
||||
// Public signature debug description: outer(){}
|
||||
fun outer(): Unit
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.LocalClass
|
||||
// Mangled name for the signature: outer(){}
|
||||
local class LocalClass {
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.LocalClass#<init>(){}
|
||||
// Mangled name for the signature: outer(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #outer(){}.LocalClass#foo(){}
|
||||
// Mangled name for the signature: outer(){}foo(){}
|
||||
fun foo(): Unit
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430
|
||||
|
||||
interface IFoo {
|
||||
fun foo()
|
||||
|
||||
@@ -3,27 +3,6 @@
|
||||
// Public signature: /test1|6005685442305498193[0]
|
||||
// Public signature debug description: {}test1
|
||||
val test1: Any
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): {}test1.<no name provided>
|
||||
// Mangled name (compatible mode: true): test1.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}test1
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name (compatible mode: false): {}test1.<no name provided>
|
||||
// Mangled name (compatible mode: true): test1.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}test1
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
local class <no name provided> {
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): {}test1.<no name provided>#<init>(){}
|
||||
// Mangled name (compatible mode: true): test1.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature (compatible mode: false): {}test1<init>(){}
|
||||
// Mangled name for the signature (compatible mode: true): <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #<get-test1>(){}kotlin.Any
|
||||
// Public signature: /test1.<get-test1>|-6000098324399857556[0]
|
||||
@@ -39,34 +18,6 @@ val test1: Any
|
||||
// Public signature: /test2|2517758057000911509[0]
|
||||
// Public signature debug description: {}test2
|
||||
val test2: IFoo
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): {}test2.<no name provided>
|
||||
// Mangled name (compatible mode: true): test2.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}test2
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name (compatible mode: false): {}test2.<no name provided>
|
||||
// Mangled name (compatible mode: true): test2.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}test2
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
local class <no name provided> : IFoo {
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): {}test2.<no name provided>#<init>(){}
|
||||
// Mangled name (compatible mode: true): test2.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature (compatible mode: false): {}test2<init>(){}
|
||||
// Mangled name for the signature (compatible mode: true): <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): {}test2.<no name provided>#foo(){}
|
||||
// Mangled name (compatible mode: true): test2.<no name provided>#foo(){}
|
||||
// Mangled name for the signature (compatible mode: false): {}test2foo(){}
|
||||
// Mangled name for the signature (compatible mode: true): foo(){}
|
||||
override fun foo(): Unit
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #<get-test2>(){}IFoo
|
||||
// Public signature: /test2.<get-test2>|8558399082919905120[0]
|
||||
@@ -114,30 +65,6 @@ class Outer {
|
||||
// Public signature: /Outer.test3|-3759735065270951803[0]
|
||||
// Public signature debug description: test3(){}
|
||||
fun test3(): Inner
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Outer#test3(){}Outer.Inner.<no name provided>
|
||||
// Mangled name for the signature: test3(){}Outer.Inner
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Outer#test3(){}.<no name provided>
|
||||
// Mangled name for the signature: test3(){}
|
||||
local class <no name provided> : Inner {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Outer#test3(){}Outer.Inner.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: test3(){}Outer.Inner<init>(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Outer#test3(){}.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: test3(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Outer#test3(){}Outer.Inner.<no name provided>#foo(){}
|
||||
// Mangled name for the signature: test3(){}Outer.Innerfoo(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Outer#test3(){}.<no name provided>#foo(){}
|
||||
// Mangled name for the signature: test3(){}foo(){}
|
||||
override fun foo(): Unit
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -163,28 +90,4 @@ interface IFoo {
|
||||
// Public signature: /test4|5715080467126173402[0]
|
||||
// Public signature debug description: test4@Outer(){}
|
||||
fun Outer.test4(): Inner
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test4@Outer(){}Outer.Inner.<no name provided>
|
||||
// Mangled name for the signature: test4@Outer(){}Outer.Inner
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #test4@Outer(){}.<no name provided>
|
||||
// Mangled name for the signature: test4@Outer(){}
|
||||
local class <no name provided> : Inner {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test4@Outer(){}Outer.Inner.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: test4@Outer(){}Outer.Inner<init>(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #test4@Outer(){}.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: test4@Outer(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test4@Outer(){}Outer.Inner.<no name provided>#foo(){}
|
||||
// Mangled name for the signature: test4@Outer(){}Outer.Innerfoo(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #test4@Outer(){}.<no name provided>#foo(){}
|
||||
// Mangled name for the signature: test4@Outer(){}foo(){}
|
||||
override fun foo(): Unit
|
||||
|
||||
}
|
||||
|
||||
|
||||
-4
@@ -1,9 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57428
|
||||
|
||||
annotation class Ann
|
||||
|
||||
|
||||
Vendored
-13
@@ -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]
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
-5
@@ -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
|
||||
|
||||
|
||||
-9
@@ -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(){}
|
||||
|
||||
Vendored
-4
@@ -1,9 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57428
|
||||
|
||||
class O(val o: String)
|
||||
|
||||
|
||||
-19
@@ -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
|
||||
|
||||
|
||||
Vendored
-9
@@ -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(){}
|
||||
|
||||
-18
@@ -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>
|
||||
|
||||
}
|
||||
|
||||
|
||||
-9
@@ -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
|
||||
|
||||
|
||||
-7
@@ -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 {
|
||||
|
||||
-7
@@ -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
|
||||
|
||||
|
||||
Vendored
-4
@@ -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) { }
|
||||
|
||||
Vendored
-8
@@ -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
|
||||
|
||||
|
||||
-18
@@ -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
|
||||
|
||||
-54
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Vendored
+10
@@ -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
|
||||
|
||||
}
|
||||
|
||||
-5
@@ -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
|
||||
|
||||
|
||||
-4
@@ -1,9 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57434
|
||||
|
||||
class MyClass(val value: String)
|
||||
|
||||
|
||||
Vendored
-16
@@ -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
|
||||
|
||||
@@ -7,8 +7,10 @@ val test1: ErrorType
|
||||
// Mangled name: #<get-test1>(){}<ERROR CLASS>
|
||||
// Mangled name for the signature computed from Ir: <get-test1>(){}<ERROR CLASS>
|
||||
// Mangled name for the signature computed from Descriptor: <get-test1>(){}<Error class: unknown class>
|
||||
// Public signature: /test1.<get-test1>|-4817139884021780494[0]
|
||||
// Public signature debug description: <get-test1>(){}<Error class: unknown class>
|
||||
// Public signature by IR: /test1.<get-test1>|3342025465423582211[0]
|
||||
// Public signature by IR debug description: <get-test1>(){}<ERROR CLASS>
|
||||
// Public signature by Frontend: /test1.<get-test1>|-4817139884021780494[0]
|
||||
// Public signature by Frontend debug description: <get-test1>(){}<Error class: unknown class>
|
||||
get
|
||||
|
||||
// CHECK:
|
||||
@@ -20,8 +22,10 @@ val test2: ErrorType
|
||||
// Mangled name: #<get-test2>(){}<ERROR CLASS>
|
||||
// Mangled name for the signature computed from Ir: <get-test2>(){}<ERROR CLASS>
|
||||
// Mangled name for the signature computed from Descriptor: <get-test2>(){}<Error class: unknown class>
|
||||
// Public signature: /test2.<get-test2>|1859255286326922853[0]
|
||||
// Public signature debug description: <get-test2>(){}<Error class: unknown class>
|
||||
// Public signature by IR: /test2.<get-test2>|-7934828597056891230[0]
|
||||
// Public signature by IR debug description: <get-test2>(){}<ERROR CLASS>
|
||||
// Public signature by Frontend: /test2.<get-test2>|1859255286326922853[0]
|
||||
// Public signature by Frontend debug description: <get-test2>(){}<Error class: unknown class>
|
||||
get
|
||||
|
||||
// CHECK:
|
||||
@@ -33,8 +37,10 @@ val test3: ErrorType
|
||||
// Mangled name: #<get-test3>(){}<ERROR CLASS>
|
||||
// Mangled name for the signature computed from Ir: <get-test3>(){}<ERROR CLASS>
|
||||
// Mangled name for the signature computed from Descriptor: <get-test3>(){}<Error class: unknown class>
|
||||
// Public signature: /test3.<get-test3>|-2322568342617474229[0]
|
||||
// Public signature debug description: <get-test3>(){}<Error class: unknown class>
|
||||
// Public signature by IR: /test3.<get-test3>|3662345001344960274[0]
|
||||
// Public signature by IR debug description: <get-test3>(){}<ERROR CLASS>
|
||||
// Public signature by Frontend: /test3.<get-test3>|-2322568342617474229[0]
|
||||
// Public signature by Frontend debug description: <get-test3>(){}<Error class: unknown class>
|
||||
get
|
||||
|
||||
// CHECK:
|
||||
@@ -46,7 +52,9 @@ val test4: ErrorType
|
||||
// Mangled name: #<get-test4>(){}<ERROR CLASS>
|
||||
// Mangled name for the signature computed from Ir: <get-test4>(){}<ERROR CLASS>
|
||||
// Mangled name for the signature computed from Descriptor: <get-test4>(){}<Error class: unknown class>
|
||||
// Public signature: /test4.<get-test4>|-5181690683324812065[0]
|
||||
// Public signature debug description: <get-test4>(){}<Error class: unknown class>
|
||||
// Public signature by IR: /test4.<get-test4>|-8718941795621950036[0]
|
||||
// Public signature by IR debug description: <get-test4>(){}<ERROR CLASS>
|
||||
// Public signature by Frontend: /test4.<get-test4>|-5181690683324812065[0]
|
||||
// Public signature by Frontend debug description: <get-test4>(){}<Error class: unknown class>
|
||||
get
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
||||
// ^ KT-57755
|
||||
// ^ KT-57755 : Fix computing a mangled name for the `main` function
|
||||
|
||||
fun <R : Number> Number.convert(): R = TODO()
|
||||
|
||||
|
||||
@@ -18,8 +18,10 @@ fun foo(arg: Number): Unit
|
||||
// Mangled name: #main(kotlin.Array<kotlin.String>){}
|
||||
// Mangled name for the signature computed from Ir: main(kotlin.Array<kotlin.String>){}
|
||||
// Mangled name for the signature computed from Descriptor: main(kotlin.Array<kotlin.String>){}%argumentMappedWithError.kt
|
||||
// Public signature: /main|5561668743171252170[0]
|
||||
// Public signature debug description: main(kotlin.Array<kotlin.String>){}%argumentMappedWithError.kt
|
||||
// Public signature by IR: /main|5976701115139892152[0]
|
||||
// Public signature by IR debug description: main(kotlin.Array<kotlin.String>){}
|
||||
// Public signature by Frontend: /main|5561668743171252170[0]
|
||||
// Public signature by Frontend debug description: main(kotlin.Array<kotlin.String>){}%argumentMappedWithError.kt
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(kotlin.Array<kotlin.String>){}
|
||||
// Public signature: /main|5976701115139892152[0]
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57427, KT-57430
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR JS_IR_ES6 NATIVE
|
||||
// ^ KT-61141: absent enum fake_overrides: finalize (K1), getDeclaringClass (K1), clone (K2)
|
||||
|
||||
enum class X {
|
||||
|
||||
|
||||
-4
@@ -1,8 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57428
|
||||
|
||||
fun interface Foo {
|
||||
fun invoke(): String
|
||||
|
||||
Vendored
-7
@@ -34,11 +34,4 @@ fun foo(f: Foo): String
|
||||
// Public signature: /test|6620506149988718649[0]
|
||||
// Public signature debug description: test(){}
|
||||
fun test(): String
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test(){}kotlin.String#<anonymous>#static(){}kotlin.String
|
||||
// Mangled name for the signature: test(){}kotlin.String<anonymous>#static(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #test(){}#<anonymous>#static(){}
|
||||
// Mangled name for the signature: test(){}<anonymous>#static(){}
|
||||
local fun <anonymous>(): String
|
||||
|
||||
|
||||
-3
@@ -1,8 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57778
|
||||
|
||||
// FILE: implicitNotNullInDestructuringAssignment.kt
|
||||
|
||||
// NB extension receiver is nullable
|
||||
|
||||
Vendored
+1
-2
@@ -6,8 +6,7 @@ operator fun J?.component1(): Int
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #component2@J(){}kotlin.Int
|
||||
// Mangled name for the signature: component2@J(){}kotlin.Int
|
||||
// Public signature: [ File 'implicitNotNullInDestructuringAssignment.kt' <- /component2|-623550756830644944[0] ]
|
||||
// Public signature: [ File '/implicitNotNullInDestructuringAssignment.kt' <- /component2|-623550756830644944[0] ]
|
||||
private operator fun J.component2(): Int
|
||||
|
||||
// CHECK:
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
// FIR_IDENTICAL
|
||||
// LANGUAGE: +BreakContinueInInlineLambdas
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_ERRORS
|
||||
// WITH_STDLIB
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57428
|
||||
|
||||
inline fun foo(block: () -> Unit) { block() }
|
||||
|
||||
inline fun bar(block1: () -> Unit, noinline block2: () -> Unit) {
|
||||
|
||||
@@ -15,68 +15,10 @@ inline fun foo(block: Function0<Unit>): Unit
|
||||
// Public signature: /test1|4297044443957252634[0]
|
||||
// Public signature debug description: test1(){}
|
||||
fun test1(): Unit
|
||||
// CHECK:
|
||||
// Mangled name: #test1(){}#<anonymous>#static(){}
|
||||
// Mangled name for the signature: test1(){}<anonymous>#static(){}
|
||||
local fun <anonymous>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test1(){}#<anonymous>#static(){}
|
||||
// Mangled name for the signature: test1(){}<anonymous>#static(){}
|
||||
local fun <anonymous>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test1(){}#<no name provided>#static(){}
|
||||
// Mangled name for the signature: test1(){}<no name provided>#static(){}
|
||||
local fun <no name provided>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test1(){}#<no name provided>#static(){}
|
||||
// Mangled name for the signature: test1(){}<no name provided>#static(){}
|
||||
local fun <no name provided>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}
|
||||
// Public signature: /test2|4279114864133353152[0]
|
||||
// Public signature debug description: test2(){}
|
||||
fun test2(): Unit
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}#<anonymous>#static(){}
|
||||
// Mangled name for the signature: test2(){}<anonymous>#static(){}
|
||||
local fun <anonymous>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}#<anonymous>#static(){}
|
||||
// Mangled name for the signature: test2(){}<anonymous>#static(){}
|
||||
local fun <anonymous>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}#<anonymous>#static(){}
|
||||
// Mangled name for the signature: test2(){}<anonymous>#static(){}
|
||||
local fun <anonymous>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}#<anonymous>#static(){}
|
||||
// Mangled name for the signature: test2(){}<anonymous>#static(){}
|
||||
local fun <anonymous>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}#<no name provided>#static(){}
|
||||
// Mangled name for the signature: test2(){}<no name provided>#static(){}
|
||||
local fun <no name provided>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}#<no name provided>#static(){}
|
||||
// Mangled name for the signature: test2(){}<no name provided>#static(){}
|
||||
local fun <no name provided>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}#<no name provided>#static(){}
|
||||
// Mangled name for the signature: test2(){}<no name provided>#static(){}
|
||||
local fun <no name provided>(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(){}#<no name provided>#static(){}
|
||||
// Mangled name for the signature: test2(){}<no name provided>#static(){}
|
||||
local fun <no name provided>(): Unit
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430
|
||||
|
||||
class Outer {
|
||||
open inner class Inner(val x: Int)
|
||||
|
||||
@@ -7,7 +7,6 @@ class Host {
|
||||
// Public signature: /Host.y|3625903257357557171[0]
|
||||
// Public signature debug description: {}y
|
||||
val y: Int
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Host#<get-y>(){}kotlin.Int
|
||||
// Public signature: /Host.y.<get-y>|-6745575372101973707[0]
|
||||
@@ -33,53 +32,6 @@ class Host {
|
||||
// Public signature: /Host.test|-3179256530033214921[0]
|
||||
// Public signature debug description: test@Outer(){}
|
||||
fun Outer.test(): Inner
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Host#test@Outer(){}Outer.Inner.<no name provided>
|
||||
// Mangled name for the signature: test@Outer(){}Outer.Inner
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Host#test@Outer(){}.<no name provided>
|
||||
// Mangled name for the signature: test@Outer(){}
|
||||
local class <no name provided> : Inner {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Host#test@Outer(){}Outer.Inner.<no name provided>{}xx
|
||||
// Mangled name for the signature: test@Outer(){}Outer.Inner{}xx
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Host#test@Outer(){}.<no name provided>{}xx
|
||||
// Mangled name for the signature: test@Outer(){}{}xx
|
||||
val xx: Int
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Host#test@Outer(){}Outer.Inner.<no name provided>#<get-xx>(){}kotlin.Int
|
||||
// Mangled name for the signature: test@Outer(){}Outer.Inner<get-xx>(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Host#test@Outer(){}.<no name provided>#<get-xx>(){}
|
||||
// Mangled name for the signature: test@Outer(){}<get-xx>(){}
|
||||
get
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Host#test@Outer(){}Outer.Inner.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: test@Outer(){}Outer.Inner<init>(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Host#test@Outer(){}.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: test@Outer(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Host#test@Outer(){}Outer.Inner.<no name provided>{}x
|
||||
// Mangled name for the signature: test@Outer(){}Outer.Inner{}x
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Host#test@Outer(){}.<no name provided>{}x
|
||||
// Mangled name for the signature: test@Outer(){}{}x
|
||||
/* fake */ override val x: Int
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Host#test@Outer(){}Outer.Inner.<no name provided>#<get-x>(){}kotlin.Int
|
||||
// Mangled name for the signature: test@Outer(){}Outer.Inner<get-x>(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Host#test@Outer(){}.<no name provided>#<get-x>(){}
|
||||
// Mangled name for the signature: test@Outer(){}<get-x>(){}
|
||||
/* fake */ override get(): Int
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -96,7 +48,6 @@ class Outer {
|
||||
// Public signature: /Outer.Inner.x|-8060530855978347579[0]
|
||||
// Public signature debug description: {}x
|
||||
val x: Int
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Outer.Inner#<get-x>(){}kotlin.Int
|
||||
// Public signature: /Outer.Inner.x.<get-x>|4966956098150895696[0]
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57428
|
||||
|
||||
open class Base(val f1: () -> Any)
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ open class Base {
|
||||
// Public signature: /Base.f1|-3626880138223960403[0]
|
||||
// Public signature debug description: {}f1
|
||||
val f1: Function0<Any>
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Base#<get-f1>(){}kotlin.Function0<kotlin.Any>
|
||||
// Public signature: /Base.f1.<get-f1>|8566118280674785385[0]
|
||||
@@ -35,13 +34,6 @@ object Thing : Base {
|
||||
// Public signature: /Thing.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Thing#<init>(){}#<anonymous>#static(){}kotlin.Any
|
||||
// Mangled name for the signature: <init>(){}<anonymous>#static(){}kotlin.Any
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Thing#<init>(){}#<anonymous>#static(){}
|
||||
// Mangled name for the signature: <init>(){}<anonymous>#static(){}
|
||||
local fun <anonymous>(): Any
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Thing#test1(){}Thing
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// !LANGUAGE: +SuspendConversion
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
||||
// ^ KT-57755
|
||||
// ^ KT-57755: Fix computing a mangled name for the `main` function
|
||||
|
||||
fun main() {
|
||||
val foo: String.(suspend () -> Unit) -> Unit = {}
|
||||
|
||||
+4
-2
@@ -2,8 +2,10 @@
|
||||
// Mangled name: #main(){}
|
||||
// Mangled name for the signature computed from Ir: main(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%suspendConversionForExtensionFunction.kt
|
||||
// Public signature: /main|8952895695315889943[0]
|
||||
// Public signature debug description: main(){}%suspendConversionForExtensionFunction.kt
|
||||
// Public signature by IR: /main|-4284757841571462650[0]
|
||||
// Public signature by IR debug description: main(){}
|
||||
// Public signature by Frontend: /main|8952895695315889943[0]
|
||||
// Public signature by Frontend debug description: main(){}%suspendConversionForExtensionFunction.kt
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(){}
|
||||
// Public signature: /main|-4284757841571462650[0]
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430
|
||||
|
||||
fun WithCompanion.test() {
|
||||
val test1 = object : WithCompanion(this) {}
|
||||
|
||||
-21
@@ -37,25 +37,4 @@ open class WithCompanion {
|
||||
// Public signature: /test|4153745090133876513[0]
|
||||
// Public signature debug description: test@WithCompanion(){}
|
||||
fun WithCompanion.test(): Unit
|
||||
// CHECK:
|
||||
// Mangled name: #test@WithCompanion(){}.<no name provided>
|
||||
// Mangled name for the signature: test@WithCompanion(){}
|
||||
local class <no name provided> : WithCompanion {
|
||||
// CHECK:
|
||||
// Mangled name: #test@WithCompanion(){}.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: test@WithCompanion(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test@WithCompanion(){}.<no name provided>
|
||||
// Mangled name for the signature: test@WithCompanion(){}
|
||||
local class <no name provided> : WithCompanion {
|
||||
// CHECK:
|
||||
// Mangled name: #test@WithCompanion(){}.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: test@WithCompanion(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
// WITH_STDLIB
|
||||
// FULL_JDK
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57778
|
||||
|
||||
// FILE: OverloadResolutionResultsImpl.java
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -35,7 +35,6 @@ class ResolvedCall<C : Any?> {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #allCandidatesResult(kotlin.collections.Collection<MyCandidate>){0§<kotlin.Any?>}OverloadResolutionResultsImpl<0:0?>?
|
||||
// Mangled name for the signature: allCandidatesResult(kotlin.collections.Collection<MyCandidate>){0§<kotlin.Any?>}OverloadResolutionResultsImpl<0:0?>?
|
||||
// Public signature: [ File 'AllCandidates.kt' <- /allCandidatesResult|-4417746287859138452[0] ]
|
||||
// Public signature: [ File '/AllCandidates.kt' <- /allCandidatesResult|-4417746287859138452[0] ]
|
||||
private fun <A : Any?> allCandidatesResult(allCandidates: Collection<MyCandidate>): OverloadResolutionResultsImpl<A?>?
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430, KT-57778
|
||||
|
||||
interface NestedGroupFragment
|
||||
|
||||
|
||||
+4
-22
@@ -7,35 +7,17 @@ interface NestedGroupFragment {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #addMavenOptionsGroupFragment(){}#addOptionsGroup.<no name provided><kotlin.Int>
|
||||
// Mangled name for the signature: addMavenOptionsGroupFragment(){}#addOptionsGroup.<no name provided><kotlin.Int>
|
||||
// Public signature: [ File 'AnonymousAsReturnOfGenericFunction.kt' <- /addMavenOptionsGroupFragment|1068646653174639665[0] ]
|
||||
// Public signature: [ File '/AnonymousAsReturnOfGenericFunction.kt' <- /addMavenOptionsGroupFragment|1068646653174639665[0] ]
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #addMavenOptionsGroupFragment(){}
|
||||
// Mangled name for the signature: addMavenOptionsGroupFragment(){}
|
||||
// Public signature: [ File '/AnonymousAsReturnOfGenericFunction.kt' <- /addMavenOptionsGroupFragment|-4517906277787800298[0] ]
|
||||
private fun addMavenOptionsGroupFragment(): <no name provided><Int>
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #addOptionsGroup(){0§<kotlin.Any?>}#addOptionsGroup.<no name provided><0:0>
|
||||
// Mangled name for the signature: addOptionsGroup(){0§<kotlin.Any?>}#addOptionsGroup.<no name provided><0:0>
|
||||
// Public signature: [ File 'AnonymousAsReturnOfGenericFunction.kt' <- /addOptionsGroup|1295014906395670038[0] ]
|
||||
// Public signature: [ File '/AnonymousAsReturnOfGenericFunction.kt' <- /addOptionsGroup|1295014906395670038[0] ]
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #addOptionsGroup(){0§<kotlin.Any?>}
|
||||
// Mangled name for the signature: addOptionsGroup(){0§<kotlin.Any?>}
|
||||
// Public signature: [ File '/AnonymousAsReturnOfGenericFunction.kt' <- /addOptionsGroup|-317275232107674074[0] ]
|
||||
private fun <S : Any?> addOptionsGroup(): <no name provided><S>
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #addOptionsGroup(){0§<kotlin.Any?>}#addOptionsGroup.<no name provided><1:0>.<no name provided>
|
||||
// Mangled name for the signature: addOptionsGroup(){0§<kotlin.Any?>}#addOptionsGroup.<no name provided><1:0>
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #addOptionsGroup(){0§<kotlin.Any?>}.<no name provided>
|
||||
// Mangled name for the signature: addOptionsGroup(){0§<kotlin.Any?>}
|
||||
local class <no name provided> : NestedGroupFragment {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #addOptionsGroup(){0§<kotlin.Any?>}#addOptionsGroup.<no name provided><2:0>.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: addOptionsGroup(){0§<kotlin.Any?>}#addOptionsGroup.<no name provided><2:0><init>(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #addOptionsGroup(){0§<kotlin.Any?>}.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: addOptionsGroup(){0§<kotlin.Any?>}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
||||
// ^ KT-57755: Fix computing a mangled name for the `main` function
|
||||
package foo
|
||||
|
||||
class A {
|
||||
|
||||
@@ -93,8 +93,10 @@ fun <T : Any?> id(t: T): T
|
||||
// Mangled name: foo#main(){}
|
||||
// Mangled name for the signature computed from Ir: main(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%AssignmentOperator.kt
|
||||
// Public signature: foo/main|7392120756922895329[0]
|
||||
// Public signature debug description: main(){}%AssignmentOperator.kt
|
||||
// Public signature by IR: foo/main|-4284757841571462650[0]
|
||||
// Public signature by IR debug description: main(){}
|
||||
// Public signature by Frontend: foo/main|7392120756922895329[0]
|
||||
// Public signature by Frontend debug description: main(){}%AssignmentOperator.kt
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: foo#main(){}
|
||||
// Public signature: foo/main|-4284757841571462650[0]
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
// FULL_JDK
|
||||
// WITH_STDLIB
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57778
|
||||
|
||||
import java.lang.reflect.Type
|
||||
|
||||
interface ComponentContainer
|
||||
|
||||
+2
-4
@@ -1,12 +1,10 @@
|
||||
// CHECK:
|
||||
// Mangled name: {}registrationMap
|
||||
// Mangled name for the signature: {}registrationMap
|
||||
// Public signature: [ File 'ClashResolutionDescriptor.kt' <- /registrationMap|8184441143918876435[0] ]
|
||||
// Public signature: [ File '/ClashResolutionDescriptor.kt' <- /registrationMap|8184441143918876435[0] ]
|
||||
private val registrationMap: HashMap<Type, Any>
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #<get-registrationMap>(){}java.util.HashMap<java.lang.reflect.Type,kotlin.Any>
|
||||
// Mangled name for the signature: <get-registrationMap>(){}java.util.HashMap<java.lang.reflect.Type,kotlin.Any>
|
||||
// Public signature: [ File 'ClashResolutionDescriptor.kt' <- /registrationMap.<get-registrationMap>|3119298927482099509[0] ]
|
||||
// Public signature: [ File '/ClashResolutionDescriptor.kt' <- /registrationMap.<get-registrationMap>|3119298927482099509[0] ]
|
||||
private get
|
||||
|
||||
// CHECK:
|
||||
|
||||
-5
@@ -7,11 +7,6 @@ class Impl : A, B {
|
||||
// Public signature: /Impl.<init>|1084968671839233134[0]
|
||||
// Public signature debug description: <init>(Foo.B){}
|
||||
constructor(b: B) /* primary */
|
||||
// CHECK:
|
||||
// Mangled name: Impl.$$delegate_0
|
||||
// Public signature: /Impl.$$delegate_0|-7286425919675154353[0]
|
||||
// Public signature debug description:
|
||||
private /* final field */ val $$delegate_0: B
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Impl#add(kotlin.String?){}kotlin.Boolean
|
||||
// Public signature: /Impl.add|-2525808668243873976[0]
|
||||
|
||||
-5
@@ -1,8 +1,3 @@
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
||||
// ^ KT-57430
|
||||
|
||||
class Wrapper {
|
||||
private val dummy = object : Bar {}
|
||||
private val bar = object : Bar by dummy {}
|
||||
|
||||
-88
@@ -7,50 +7,9 @@ class Wrapper {
|
||||
// Public signature: /Wrapper.dummy|-4015397354973262001[0]
|
||||
// Public signature debug description: {}dummy
|
||||
private val dummy: <no name provided>
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): Wrapper{}dummy.<no name provided>
|
||||
// Mangled name (compatible mode: true): Wrapper.dummy.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}dummy
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name (compatible mode: false): Wrapper{}dummy.<no name provided>
|
||||
// Mangled name (compatible mode: true): Wrapper.dummy.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}dummy
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
local class <no name provided> : Bar {
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): Wrapper{}dummy.<no name provided>#<init>(){}
|
||||
// Mangled name (compatible mode: true): Wrapper.dummy.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature (compatible mode: false): {}dummy<init>(){}
|
||||
// Mangled name for the signature (compatible mode: true): <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): Wrapper{}dummy.<no name provided>{}foo
|
||||
// Mangled name (compatible mode: true): Wrapper.dummy.<no name provided>{}foo
|
||||
// Mangled name for the signature (compatible mode: false): {}dummy{}foo
|
||||
// Mangled name for the signature (compatible mode: true): {}foo
|
||||
/* fake */ override val foo: String
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): Wrapper{}dummy.<no name provided>#<get-foo>(){}kotlin.String
|
||||
// Mangled name (compatible mode: true): Wrapper.dummy.<no name provided>#<get-foo>(){}kotlin.String
|
||||
// Mangled name for the signature (compatible mode: false): {}dummy<get-foo>(){}kotlin.String
|
||||
// Mangled name for the signature (compatible mode: true): <get-foo>(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name (compatible mode: false): Wrapper{}dummy.<no name provided>#<get-foo>(){}
|
||||
// Mangled name (compatible mode: true): Wrapper.dummy.<no name provided>#<get-foo>(){}
|
||||
// Mangled name for the signature (compatible mode: false): {}dummy<get-foo>(){}
|
||||
// Mangled name for the signature (compatible mode: true): <get-foo>(){}
|
||||
/* fake */ override get(): String
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): Wrapper#<get-dummy>(){}Wrapper{}dummy.<no name provided>
|
||||
// Mangled name (compatible mode: true): Wrapper#<get-dummy>(){}Wrapper.dummy.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): <get-dummy>(){}Wrapper{}dummy.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: true): <get-dummy>(){}Wrapper.dummy.<no name provided>
|
||||
// Public signature: /Wrapper.dummy.<get-dummy>|-1011589390871666922[0]
|
||||
// Public signature debug description: <get-dummy>(){}Wrapper{}dummy.<no name provided>
|
||||
// CHECK JS_IR NATIVE:
|
||||
@@ -64,56 +23,9 @@ class Wrapper {
|
||||
// Public signature: /Wrapper.bar|-7864284097863469857[0]
|
||||
// Public signature debug description: {}bar
|
||||
private val bar: <no name provided>
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): Wrapper{}bar.<no name provided>
|
||||
// Mangled name (compatible mode: true): Wrapper.bar.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}bar
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name (compatible mode: false): Wrapper{}bar.<no name provided>
|
||||
// Mangled name (compatible mode: true): Wrapper.bar.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): {}bar
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
local class <no name provided> : Bar {
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): Wrapper{}bar.<no name provided>#<init>(){}
|
||||
// Mangled name (compatible mode: true): Wrapper.bar.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature (compatible mode: false): {}bar<init>(){}
|
||||
// Mangled name for the signature (compatible mode: true): <init>(){}
|
||||
constructor() /* primary */
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): Wrapper{}bar.<no name provided>.$$delegate_0
|
||||
// Mangled name (compatible mode: true): Wrapper.bar.<no name provided>.$$delegate_0
|
||||
// Mangled name for the signature (compatible mode: false): {}bar
|
||||
// Mangled name for the signature (compatible mode: true):
|
||||
private /* final field */ val $$delegate_0: <no name provided>
|
||||
|
||||
// CHECK:
|
||||
// Mangled name (compatible mode: false): Wrapper{}bar.<no name provided>{}foo
|
||||
// Mangled name (compatible mode: true): Wrapper.bar.<no name provided>{}foo
|
||||
// Mangled name for the signature (compatible mode: false): {}bar{}foo
|
||||
// Mangled name for the signature (compatible mode: true): {}foo
|
||||
override val foo: String
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): Wrapper{}bar.<no name provided>#<get-foo>(){}kotlin.String
|
||||
// Mangled name (compatible mode: true): Wrapper.bar.<no name provided>#<get-foo>(){}kotlin.String
|
||||
// Mangled name for the signature (compatible mode: false): {}bar<get-foo>(){}kotlin.String
|
||||
// Mangled name for the signature (compatible mode: true): <get-foo>(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name (compatible mode: false): Wrapper{}bar.<no name provided>#<get-foo>(){}
|
||||
// Mangled name (compatible mode: true): Wrapper.bar.<no name provided>#<get-foo>(){}
|
||||
// Mangled name for the signature (compatible mode: false): {}bar<get-foo>(){}
|
||||
// Mangled name for the signature (compatible mode: true): <get-foo>(){}
|
||||
override get(): String
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name (compatible mode: false): Wrapper#<get-bar>(){}Wrapper{}bar.<no name provided>
|
||||
// Mangled name (compatible mode: true): Wrapper#<get-bar>(){}Wrapper.bar.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: false): <get-bar>(){}Wrapper{}bar.<no name provided>
|
||||
// Mangled name for the signature (compatible mode: true): <get-bar>(){}Wrapper.bar.<no name provided>
|
||||
// Public signature: /Wrapper.bar.<get-bar>|-6775654681164748186[0]
|
||||
// Public signature debug description: <get-bar>(){}Wrapper{}bar.<no name provided>
|
||||
// CHECK JS_IR NATIVE:
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
// SKIP_KLIB_TEST
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430
|
||||
|
||||
// FILE: Collector.java
|
||||
|
||||
public class Collector {
|
||||
|
||||
@@ -8,26 +8,11 @@ class Serializer {
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// CHECK:
|
||||
// Mangled name: Serializer#createMessageCollector(){}Serializer#createMessageCollector.<no name provided>
|
||||
// Public signature: /Serializer.createMessageCollector|2610567021773551177[0]
|
||||
// Public signature debug description: createMessageCollector(){}Serializer#createMessageCollector.<no name provided>
|
||||
private fun createMessageCollector(): <no name provided>
|
||||
// CHECK:
|
||||
// Mangled name: Serializer#createMessageCollector(){}Serializer#createMessageCollector.<no name provided>.<no name provided>
|
||||
// Mangled name for the signature: createMessageCollector(){}Serializer#createMessageCollector.<no name provided>
|
||||
local class <no name provided> : Collector {
|
||||
// CHECK:
|
||||
// Mangled name: Serializer#createMessageCollector(){}Serializer#createMessageCollector.<no name provided>.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: createMessageCollector(){}Serializer#createMessageCollector.<no name provided><init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Serializer#createMessageCollector(){}Serializer#createMessageCollector.<no name provided>.<no name provided>#flush(){}
|
||||
// Mangled name for the signature: createMessageCollector(){}Serializer#createMessageCollector.<no name provided>flush(){}
|
||||
/* fake */ override fun flush(): Unit
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Serializer#serialize(){}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57788
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR JS_IR NATIVE
|
||||
// ^ KT-57788: Fix computing mangled names of types with @EnhancedNullability from IR-based declaration descriptors
|
||||
|
||||
// KT-61141: ImplicitReceiverStack & PersistentImplicitReceiverStack miss fake overrides `forEach` & `spliterator`
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
+3
-5
@@ -41,18 +41,16 @@ open class B {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: D
|
||||
// Public signature: [ File '<unknown>' <- /D|null[0] ]
|
||||
// Public signature: [ File '/test.kt' <- /D|null[0] ]
|
||||
private class D : C {
|
||||
// CHECK:
|
||||
// Mangled name: D#<init>(A){}
|
||||
// Public signature: /D.<init>|-3166999336802030902[0]
|
||||
// Public signature debug description: <init>(A){}
|
||||
// Public signature: [ File '/test.kt' <- /D.<init>|-3166999336802030902[0] ]
|
||||
constructor(a: A) /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: D#getA(){0§<A>}0:0
|
||||
// Public signature: /D.getA|6265629995120627543[0]
|
||||
// Public signature debug description: getA(){0§<A>}0:0
|
||||
// Public signature: [ File '/test.kt' <- /D.getA|6265629995120627543[0] ]
|
||||
/* fake */ override fun <T : A> getA(): T
|
||||
|
||||
}
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
// WITH_STDLIB
|
||||
// FULL_JDK
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57778
|
||||
|
||||
import java.io.Reader
|
||||
import java.io.StringReader
|
||||
|
||||
|
||||
+3
-6
@@ -6,18 +6,15 @@ fun Reader.consumeRestOfQuotedSequence(sb: StringBuilder, quote: Char): Unit
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #nextChar@java.io.Reader(){}kotlin.Char?
|
||||
// Mangled name for the signature: nextChar@java.io.Reader(){}kotlin.Char?
|
||||
// Public signature: [ File 'coercionToUnitForNestedWhen.kt' <- /nextChar|8697099457416866690[0] ]
|
||||
// Public signature: [ File '/coercionToUnitForNestedWhen.kt' <- /nextChar|8697099457416866690[0] ]
|
||||
private fun Reader.nextChar(): Char?
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: {}BACKSLASH
|
||||
// Mangled name for the signature: {}BACKSLASH
|
||||
// Public signature: [ File 'coercionToUnitForNestedWhen.kt' <- /BACKSLASH|9213821134505379379[0] ]
|
||||
// Public signature: [ File '/coercionToUnitForNestedWhen.kt' <- /BACKSLASH|9213821134505379379[0] ]
|
||||
private const val BACKSLASH: Char
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #<get-BACKSLASH>(){}kotlin.Char
|
||||
// Mangled name for the signature: <get-BACKSLASH>(){}kotlin.Char
|
||||
// Public signature: [ File 'coercionToUnitForNestedWhen.kt' <- /BACKSLASH.<get-BACKSLASH>|7174062972088453102[0] ]
|
||||
// Public signature: [ File '/coercionToUnitForNestedWhen.kt' <- /BACKSLASH.<get-BACKSLASH>|7174062972088453102[0] ]
|
||||
private get
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// IGNORE_BACKEND_K1: JS_IR
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
||||
// ^ KT-57755
|
||||
// ^ KT-57755: Fix computing a mangled name for the `main` function
|
||||
|
||||
// KT-61141: `println (message: kotlin.Any?)` instead of `println (message: kotlin.Int)`
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
@@ -2,8 +2,10 @@
|
||||
// Mangled name: #main(){}
|
||||
// Mangled name for the signature computed from Ir: main(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%kt55458.kt
|
||||
// Public signature: /main|-1793468409000137506[0]
|
||||
// Public signature debug description: main(){}%kt55458.kt
|
||||
// Public signature by IR: /main|-4284757841571462650[0]
|
||||
// Public signature by IR debug description: main(){}
|
||||
// Public signature by Frontend: /main|-1793468409000137506[0]
|
||||
// Public signature by Frontend debug description: main(){}%kt55458.kt
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(){}
|
||||
// Public signature: /main|-4284757841571462650[0]
|
||||
|
||||
+2
-10
@@ -1,14 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-50774
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57427
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR JS_IR_ES6 NATIVE
|
||||
// ^ KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
|
||||
class Wrapper(var baseUrl: String)
|
||||
|
||||
|
||||
-6
@@ -7,7 +7,6 @@ class Wrapper {
|
||||
// Public signature: /Wrapper.baseUrl|8725729733335673706[0]
|
||||
// Public signature debug description: {}baseUrl
|
||||
var baseUrl: String
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Wrapper#<get-baseUrl>(){}kotlin.String
|
||||
// Public signature: /Wrapper.baseUrl.<get-baseUrl>|-3814925406424189958[0]
|
||||
@@ -44,11 +43,6 @@ enum class ConfigurationParameter : Enum<ConfigurationParameter> {
|
||||
// Mangled name: ConfigurationParameter.BASE_URL
|
||||
// Public signature: /ConfigurationParameter.BASE_URL|null[0]
|
||||
BASE_URL
|
||||
// CHECK:
|
||||
// Mangled name: ConfigurationParameter#<anonymous>#static(kotlin.String;Wrapper){}
|
||||
// Mangled name for the signature computed from Ir: <anonymous>#static(kotlin.String;Wrapper){}
|
||||
// Mangled name for the signature computed from Descriptor: <init>(){}<anonymous>#static(kotlin.String;Wrapper){}
|
||||
local fun <anonymous>(value: String, nc: Wrapper): Unit
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: ConfigurationParameter#valueOf#static(kotlin.String){}ConfigurationParameter
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430
|
||||
|
||||
fun box(): String {
|
||||
return object {
|
||||
|
||||
-65
@@ -7,69 +7,4 @@
|
||||
// Public signature: /box|2173511048851971368[0]
|
||||
// Public signature debug description: box(){}
|
||||
fun box(): String
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #box(){}kotlin.String.<no name provided>
|
||||
// Mangled name for the signature: box(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #box(){}.<no name provided>
|
||||
// Mangled name for the signature: box(){}
|
||||
local class <no name provided> {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #box(){}kotlin.String.<no name provided>{}a
|
||||
// Mangled name for the signature: box(){}kotlin.String{}a
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #box(){}.<no name provided>{}a
|
||||
// Mangled name for the signature: box(){}{}a
|
||||
val a: A
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #box(){}kotlin.String.<no name provided>#<get-a>(){}#box.<no name provided>.A
|
||||
// Mangled name for the signature: box(){}kotlin.String<get-a>(){}#box.<no name provided>.A
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #box(){}.<no name provided>#<get-a>(){}
|
||||
// Mangled name for the signature: box(){}<get-a>(){}
|
||||
get
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #box(){}kotlin.String.<no name provided>.A
|
||||
// Mangled name for the signature: box(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #box(){}.<no name provided>.A
|
||||
// Mangled name for the signature: box(){}
|
||||
local inner class A {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #box(){}kotlin.String.<no name provided>.A{}ok
|
||||
// Mangled name for the signature: box(){}kotlin.String{}ok
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #box(){}.<no name provided>.A{}ok
|
||||
// Mangled name for the signature: box(){}{}ok
|
||||
val ok: String
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #box(){}kotlin.String.<no name provided>.A#<get-ok>(){}kotlin.String
|
||||
// Mangled name for the signature: box(){}kotlin.String<get-ok>(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #box(){}.<no name provided>.A#<get-ok>(){}
|
||||
// Mangled name for the signature: box(){}<get-ok>(){}
|
||||
get
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #box(){}kotlin.String.<no name provided>.A#<init>(kotlin.String){}
|
||||
// Mangled name for the signature: box(){}kotlin.String<init>(kotlin.String){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #box(){}.<no name provided>.A#<init>(kotlin.String){}
|
||||
// Mangled name for the signature: box(){}<init>(kotlin.String){}
|
||||
constructor(ok: String) /* primary */
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #box(){}kotlin.String.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: box(){}kotlin.String<init>(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #box(){}.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: box(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// FIR_IDENTICAL
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57755, KT-57430
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
||||
// ^ KT-57755: Fix computing a mangled name for the `main` function
|
||||
|
||||
fun main() {
|
||||
class Foo {
|
||||
|
||||
@@ -2,57 +2,13 @@
|
||||
// Mangled name: #main(){}
|
||||
// Mangled name for the signature computed from Ir: main(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt
|
||||
// Public signature: /main|1798078925369608927[0]
|
||||
// Public signature debug description: main(){}%localCompanion.kt
|
||||
// Public signature by IR: /main|-4284757841571462650[0]
|
||||
// Public signature by IR debug description: main(){}
|
||||
// Public signature by Frontend: /main|1798078925369608927[0]
|
||||
// Public signature by Frontend debug description: main(){}%localCompanion.kt
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(){}
|
||||
// Public signature: /main|-4284757841571462650[0]
|
||||
// Public signature debug description: main(){}
|
||||
fun main(): Unit
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #main(){}.Foo
|
||||
// Mangled name for the signature computed from Ir: main(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(){}.Foo
|
||||
// Mangled name for the signature: main(){}
|
||||
local class Foo {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #main(){}.Foo.Companion
|
||||
// Mangled name for the signature computed from Ir: main(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(){}.Foo.Companion
|
||||
// Mangled name for the signature: main(){}
|
||||
local companion object Companion {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #main(){}.Foo.Companion#<init>(){}
|
||||
// Mangled name for the signature computed from Ir: main(){}<init>(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt<init>(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(){}.Foo.Companion#<init>(){}
|
||||
// Mangled name for the signature: main(){}<init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #main(){}.Foo.Companion#bar(){}
|
||||
// Mangled name for the signature computed from Ir: main(){}bar(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.ktbar(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(){}.Foo.Companion#bar(){}
|
||||
// Mangled name for the signature: main(){}bar(){}
|
||||
fun bar(): Unit
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #main(){}.Foo#<init>(){}
|
||||
// Mangled name for the signature computed from Ir: main(){}<init>(){}
|
||||
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt<init>(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #main(){}.Foo#<init>(){}
|
||||
// Mangled name for the signature: main(){}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// WITH_REFLECT
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57430
|
||||
|
||||
import kotlin.properties.ReadWriteProperty
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
@@ -7,7 +7,6 @@ class IdeWizard {
|
||||
// Public signature: /IdeWizard.projectTemplate|1011078309052725595[0]
|
||||
// Public signature debug description: {}projectTemplate
|
||||
var projectTemplate: Int? /* by */
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IdeWizard#<get-projectTemplate>(){}kotlin.Int?
|
||||
// Public signature: /IdeWizard.projectTemplate.<get-projectTemplate>|-8817473698570649998[0]
|
||||
@@ -38,38 +37,6 @@ class IdeWizard {
|
||||
// Public signature: /IdeWizard.setting|2630265268614068431[0]
|
||||
// Public signature debug description: setting(SettingReference<0:0,0:1>){0§<kotlin.Any>;1§<SettingType<0:0>>}
|
||||
private fun <V : Any, T : SettingType<V>> setting(reference: SettingReference<V, T>): <no name provided><V, T>
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IdeWizard#setting(SettingReference<1:0,1:1>){0§<kotlin.Any>;1§<SettingType<1:0>>}IdeWizard#setting.<no name provided><1:0,1:1>.<no name provided>
|
||||
// Mangled name for the signature: setting(SettingReference<1:0,1:1>){0§<kotlin.Any>;1§<SettingType<1:0>>}IdeWizard#setting.<no name provided><1:0,1:1>
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: IdeWizard#setting(SettingReference<1:0,1:1>){0§<kotlin.Any>;1§<SettingType<1:0>>}.<no name provided>
|
||||
// Mangled name for the signature: setting(SettingReference<1:0,1:1>){0§<kotlin.Any>;1§<SettingType<1:0>>}
|
||||
local class <no name provided> : ReadWriteProperty<Any?, V?> {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IdeWizard#setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}IdeWizard#setting.<no name provided><2:0,2:1>.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}IdeWizard#setting.<no name provided><2:0,2:1><init>(){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: IdeWizard#setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}.<no name provided>#<init>(){}
|
||||
// Mangled name for the signature: setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}<init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IdeWizard#setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}IdeWizard#setting.<no name provided><2:0,2:1>.<no name provided>#getValue(kotlin.Any?;kotlin.reflect.KProperty<*>){}2:0?
|
||||
// Mangled name for the signature: setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}IdeWizard#setting.<no name provided><2:0,2:1>getValue(kotlin.Any?;kotlin.reflect.KProperty<*>){}2:0?
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: IdeWizard#setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}.<no name provided>#getValue(kotlin.Any?;kotlin.reflect.KProperty<*>){}
|
||||
// Mangled name for the signature: setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}getValue(kotlin.Any?;kotlin.reflect.KProperty<*>){}
|
||||
override operator fun getValue(thisRef: Any?, property: KProperty<*>): V?
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IdeWizard#setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}IdeWizard#setting.<no name provided><2:0,2:1>.<no name provided>#setValue(kotlin.Any?;kotlin.reflect.KProperty<*>;2:0?){}
|
||||
// Mangled name for the signature: setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}IdeWizard#setting.<no name provided><2:0,2:1>setValue(kotlin.Any?;kotlin.reflect.KProperty<*>;2:0?){}
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: IdeWizard#setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}.<no name provided>#setValue(kotlin.Any?;kotlin.reflect.KProperty<*>;2:0?){}
|
||||
// Mangled name for the signature: setting(SettingReference<2:0,2:1>){0§<kotlin.Any>;1§<SettingType<2:0>>}setValue(kotlin.Any?;kotlin.reflect.KProperty<*>;2:0?){}
|
||||
override operator fun setValue(thisRef: Any?, property: KProperty<*>, value: V?): Unit
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -82,7 +49,6 @@ class SettingReference<V : Any, T : SettingType<V>> {
|
||||
// Public signature: /SettingReference.t|-8767999791664836944[0]
|
||||
// Public signature debug description: {}t
|
||||
var t: T
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: SettingReference#<get-t>(){}1:1
|
||||
// Public signature: /SettingReference.t.<get-t>|3876475218778608787[0]
|
||||
@@ -103,7 +69,6 @@ class SettingReference<V : Any, T : SettingType<V>> {
|
||||
// Public signature: /SettingReference.v|138869847852828796[0]
|
||||
// Public signature debug description: {}v
|
||||
var v: V
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: SettingReference#<get-v>(){}1:0
|
||||
// Public signature: /SettingReference.v.<get-v>|-6358452650346304910[0]
|
||||
@@ -136,7 +101,6 @@ class SettingType<out V : Any> {
|
||||
// Public signature: /SettingType.type|-6051055617123801408[0]
|
||||
// Public signature debug description: {}type
|
||||
val type: KClass<out V>
|
||||
field
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: SettingType#<get-type>(){}kotlin.reflect.KClass<out|1:0>
|
||||
// Public signature: /SettingType.type.<get-type>|-782685829818054763[0]
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
// SKIP_KLIB_TEST
|
||||
// WITH_REFLECT
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57778
|
||||
|
||||
import kotlin.reflect.KProperty1
|
||||
|
||||
private typealias PropAlias<T> = KProperty1<T, Any?>?
|
||||
|
||||
+2
-4
@@ -35,9 +35,7 @@ class Foo {
|
||||
// Public signature debug description: box(){}
|
||||
fun box(): String
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: PropAlias
|
||||
// Public signature: [ File 'reflectGetOnNullableTypeAlias.kt' <- /PropAlias|null[0] ]
|
||||
// CHECK JS_IR NATIVE:
|
||||
// CHECK:
|
||||
// Mangled name: PropAlias
|
||||
// Public signature: [ File '/reflectGetOnNullableTypeAlias.kt' <- /PropAlias|null[0] ]
|
||||
private typealias PropAlias<T : Any?> = KProperty1<T, Any?>?
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57778
|
||||
|
||||
private fun test(x: Long) =
|
||||
countIssues {
|
||||
+(spentTime lessEq 2 * 60)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user