[klib] Test signature descriptions in irText tests
KT-59486
This commit is contained in:
committed by
Space Team
parent
6142d75bb4
commit
5e63f7627f
+1
@@ -1,5 +1,6 @@
|
||||
// CHECK:
|
||||
// Mangled name: #test(kotlin.Function0<kotlin.Unit>;java.lang.Runnable;kotlin.Array<kotlin.String>){}
|
||||
// Public signature: /test|-6479681129946022977[0]
|
||||
// Public signature debug description: test(kotlin.Function0<kotlin.Unit>;java.lang.Runnable;kotlin.Array<kotlin.String>){}
|
||||
fun test(fn: Function0<Unit>, r: Runnable, arr: Array<String>): Unit
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// CHECK:
|
||||
// Mangled name: #test(){}
|
||||
// Public signature: /test|6620506149988718649[0]
|
||||
// Public signature debug description: test(){}
|
||||
fun test(): Unit
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #f(kotlin.Any){}kotlin.String
|
||||
// Public signature: /f|7796856655889654815[0]
|
||||
// Public signature debug description: f(kotlin.Any){}kotlin.String
|
||||
fun f(x: Any): String
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// CHECK:
|
||||
// Mangled name: #test1(){}
|
||||
// Public signature: /test1|4297044443957252634[0]
|
||||
// Public signature debug description: test1(){}
|
||||
fun test1(): Unit
|
||||
|
||||
|
||||
@@ -1,25 +1,30 @@
|
||||
// CHECK:
|
||||
// Mangled name: #foo(){}
|
||||
// Public signature: /foo|-1041209573719867811[0]
|
||||
// Public signature debug description: foo(){}
|
||||
fun foo(): Unit
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test1(){}java.lang.Runnable
|
||||
// Public signature: /test1|-613876279970827772[0]
|
||||
// Public signature debug description: test1(){}java.lang.Runnable
|
||||
fun test1(): Runnable
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test2(kotlin.Function0<kotlin.Unit>){}java.lang.Runnable
|
||||
// Public signature: /test2|-6701609995382300258[0]
|
||||
// Public signature debug description: test2(kotlin.Function0<kotlin.Unit>){}java.lang.Runnable
|
||||
fun test2(a: Function0<Unit>): Runnable
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test3(){}java.lang.Runnable
|
||||
// Public signature: /test3|-2297362667420108091[0]
|
||||
// Public signature debug description: test3(){}java.lang.Runnable
|
||||
fun test3(): Runnable
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test4(){}java.util.Comparator<kotlin.Int>
|
||||
// Public signature: /test4|-6683954143544750623[0]
|
||||
// Public signature debug description: test4(){}java.util.Comparator<kotlin.Int>
|
||||
fun test4(): Comparator<Int>
|
||||
|
||||
|
||||
Vendored
+10
@@ -5,10 +5,12 @@ class Outer<T1 : Any?> {
|
||||
// CHECK:
|
||||
// Mangled name: Outer{}j11
|
||||
// Public signature: /Outer.j11|3042103907784946942[0]
|
||||
// Public signature debug description: {}j11
|
||||
val j11: J<T1, T1>
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Outer#<get-j11>(){}J<1:0,1:0>
|
||||
// Public signature: /Outer.j11.<get-j11>|1291746945058754296[0]
|
||||
// Public signature debug description: <get-j11>(){}J<1:0,1:0>
|
||||
get
|
||||
|
||||
// CHECK:
|
||||
@@ -18,15 +20,18 @@ class Outer<T1 : Any?> {
|
||||
// CHECK:
|
||||
// Mangled name: Outer.Inner{}j12
|
||||
// Public signature: /Outer.Inner.j12|8035547960084394556[0]
|
||||
// Public signature debug description: {}j12
|
||||
val j12: J<T1, T2>
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Outer.Inner#<get-j12>(){}J<2:0,1:0>
|
||||
// Public signature: /Outer.Inner.j12.<get-j12>|-5099511302970927970[0]
|
||||
// Public signature debug description: <get-j12>(){}J<2:0,1:0>
|
||||
get
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Outer.Inner#<init>(J<2:0,1:0>){}
|
||||
// Public signature: /Outer.Inner.<init>|-1839564309215892252[0]
|
||||
// Public signature debug description: <init>(J<2:0,1:0>){}
|
||||
constructor(j12: J<T1, T2>) /* primary */
|
||||
|
||||
}
|
||||
@@ -34,6 +39,7 @@ class Outer<T1 : Any?> {
|
||||
// CHECK:
|
||||
// Mangled name: Outer#<init>(J<1:0,1:0>){}
|
||||
// Public signature: /Outer.<init>|3621221723434232230[0]
|
||||
// Public signature debug description: <init>(J<1:0,1:0>){}
|
||||
constructor(j11: J<T1, T1>) /* primary */
|
||||
|
||||
}
|
||||
@@ -41,20 +47,24 @@ class Outer<T1 : Any?> {
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test3(kotlin.Function1<kotlin.String,kotlin.String>;kotlin.Function1<kotlin.Int,kotlin.String>){}C.D<kotlin.Int?,kotlin.String?>
|
||||
// Public signature: /test3|-179639781639450333[0]
|
||||
// Public signature debug description: test3(kotlin.Function1<kotlin.String,kotlin.String>;kotlin.Function1<kotlin.Int,kotlin.String>){}C.D<kotlin.Int?,kotlin.String?>
|
||||
fun test3(f1: Function1<String, String>, f2: Function1<Int, String>): D<Int?, String?>
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test4(kotlin.Function1<kotlin.String,kotlin.String>;kotlin.Function1<kotlin.Any,kotlin.String>){}Outer.Inner<kotlin.Any?,kotlin.String?>
|
||||
// Public signature: /test4|7503778563590790519[0]
|
||||
// Public signature debug description: test4(kotlin.Function1<kotlin.String,kotlin.String>;kotlin.Function1<kotlin.Any,kotlin.String>){}Outer.Inner<kotlin.Any?,kotlin.String?>
|
||||
fun test4(f: Function1<String, String>, g: Function1<Any, String>): Inner<Any?, String?>
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #testGenericJavaCtor1(kotlin.Function1<kotlin.String,kotlin.Int>){}G<kotlin.String?>
|
||||
// Public signature: /testGenericJavaCtor1|8726720168953319778[0]
|
||||
// Public signature debug description: testGenericJavaCtor1(kotlin.Function1<kotlin.String,kotlin.Int>){}G<kotlin.String?>
|
||||
fun testGenericJavaCtor1(f: Function1<String, Int>): G<String?>
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #testGenericJavaCtor2(kotlin.Any){}
|
||||
// Public signature: /testGenericJavaCtor2|-6916979209934908350[0]
|
||||
// Public signature debug description: testGenericJavaCtor2(kotlin.Any){}
|
||||
fun testGenericJavaCtor2(x: Any): Unit
|
||||
|
||||
|
||||
+10
@@ -1,50 +1,60 @@
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test1(){}J<kotlin.String>
|
||||
// Public signature: /test1|8889900013954121507[0]
|
||||
// Public signature debug description: test1(){}J<kotlin.String>
|
||||
fun test1(): J<String>
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test10(kotlin.Function1<kotlin.Int,kotlin.String>){}
|
||||
// Public signature: /test10|3769162614537259024[0]
|
||||
// Public signature debug description: test10(kotlin.Function1<kotlin.Int,kotlin.String>){}
|
||||
fun test10(fn: Function1<Int, String>): Unit
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test2(){}J<kotlin.String?>
|
||||
// Public signature: /test2|-2485267088492515783[0]
|
||||
// Public signature debug description: test2(){}J<kotlin.String?>
|
||||
fun test2(): J<String?>
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test3(){}
|
||||
// Public signature: /test3|-3759735065270951803[0]
|
||||
// Public signature debug description: test3(){}
|
||||
fun test3(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test4(kotlin.Any){}
|
||||
// Public signature: /test4|-9023258848991787985[0]
|
||||
// Public signature debug description: test4(kotlin.Any){}
|
||||
fun test4(a: Any): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test5(kotlin.Any){}
|
||||
// Public signature: /test5|4504681808078971124[0]
|
||||
// Public signature debug description: test5(kotlin.Any){}
|
||||
fun test5(a: Any): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test6(kotlin.Function1<0:0,0:0>){0§<kotlin.Any?>}
|
||||
// Public signature: /test6|-3081320997310711341[0]
|
||||
// Public signature debug description: test6(kotlin.Function1<0:0,0:0>){0§<kotlin.Any?>}
|
||||
fun <T : Any?> test6(a: Function1<T, T>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test7(kotlin.Any){0§<kotlin.Any?>}
|
||||
// Public signature: /test7|-5359981114052378429[0]
|
||||
// Public signature debug description: test7(kotlin.Any){0§<kotlin.Any?>}
|
||||
fun <T : Any?> test7(a: Any): Unit
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #test8(kotlin.Function1<kotlin.String,kotlin.String>){}J<kotlin.String?>
|
||||
// Public signature: /test8|-6112132748185879177[0]
|
||||
// Public signature debug description: test8(kotlin.Function1<kotlin.String,kotlin.String>){}J<kotlin.String?>
|
||||
fun test8(efn: @ExtensionFunctionType Function1<String, String>): J<String?>
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test9(kotlin.Function1<kotlin.String,kotlin.String>){}
|
||||
// Public signature: /test9|5682079641444556672[0]
|
||||
// Public signature debug description: test9(kotlin.Function1<kotlin.String,kotlin.String>){}
|
||||
fun test9(efn: @ExtensionFunctionType Function1<String, String>): Unit
|
||||
|
||||
|
||||
@@ -1,25 +1,30 @@
|
||||
// CHECK:
|
||||
// Mangled name: #test0@J(java.lang.Runnable){}
|
||||
// Public signature: /test0|7082314898497215723[0]
|
||||
// Public signature debug description: test0@J(java.lang.Runnable){}
|
||||
fun J.test0(a: Runnable): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test1(){}
|
||||
// Public signature: /test1|4297044443957252634[0]
|
||||
// Public signature debug description: test1(){}
|
||||
fun test1(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2@J(){}
|
||||
// Public signature: /test2|-509977306549568233[0]
|
||||
// Public signature debug description: test2@J(){}
|
||||
fun J.test2(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test3@J(kotlin.Function0<kotlin.Unit>){}
|
||||
// Public signature: /test3|3795186268197616186[0]
|
||||
// Public signature debug description: test3@J(kotlin.Function0<kotlin.Unit>){}
|
||||
fun J.test3(a: Function0<Unit>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test4@J(kotlin.Function0<kotlin.Unit>;kotlin.Function0<kotlin.Unit>;kotlin.Boolean){}
|
||||
// Public signature: /test4|-7934218580139307891[0]
|
||||
// Public signature debug description: test4@J(kotlin.Function0<kotlin.Unit>;kotlin.Function0<kotlin.Unit>;kotlin.Boolean){}
|
||||
fun J.test4(a: Function0<Unit>, b: Function0<Unit>, flag: Boolean): Unit
|
||||
|
||||
|
||||
+10
@@ -1,50 +1,60 @@
|
||||
// CHECK:
|
||||
// Mangled name: #test1(kotlin.Function0<kotlin.Unit>){}
|
||||
// Public signature: /test1|-2870537507416699845[0]
|
||||
// Public signature debug description: test1(kotlin.Function0<kotlin.Unit>){}
|
||||
fun test1(a: Function0<Unit>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2(kotlin.Function0<kotlin.Unit>){}
|
||||
// Public signature: /test2|-8241603768593447441[0]
|
||||
// Public signature debug description: test2(kotlin.Function0<kotlin.Unit>){}
|
||||
fun test2(a: Function0<Unit>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test3(kotlin.Function0<kotlin.Unit>){}
|
||||
// Public signature: /test3|-1760685804488672424[0]
|
||||
// Public signature debug description: test3(kotlin.Function0<kotlin.Unit>){}
|
||||
fun test3(a: Function0<Unit>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test4(kotlin.Function0<kotlin.Unit>;kotlin.Function0<kotlin.Unit>){}
|
||||
// Public signature: /test4|1443124276429499957[0]
|
||||
// Public signature debug description: test4(kotlin.Function0<kotlin.Unit>;kotlin.Function0<kotlin.Unit>){}
|
||||
fun test4(a: Function0<Unit>, b: Function0<Unit>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test5(kotlin.Any){}
|
||||
// Public signature: /test5|4504681808078971124[0]
|
||||
// Public signature debug description: test5(kotlin.Any){}
|
||||
fun test5(a: Any): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test5x(kotlin.Any){}
|
||||
// Public signature: /test5x|8044678810048210306[0]
|
||||
// Public signature debug description: test5x(kotlin.Any){}
|
||||
fun test5x(a: Any): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test6(kotlin.Any){}
|
||||
// Public signature: /test6|-7590017673454141671[0]
|
||||
// Public signature debug description: test6(kotlin.Any){}
|
||||
fun test6(a: Any): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test7(kotlin.Function1<kotlin.Int,kotlin.Int>){}
|
||||
// Public signature: /test7|1095013294548842913[0]
|
||||
// Public signature debug description: test7(kotlin.Function1<kotlin.Int,kotlin.Int>){}
|
||||
fun test7(a: Function1<Int, Int>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test8(kotlin.Function0<kotlin.Unit>){}
|
||||
// Public signature: /test8|8321269803549472585[0]
|
||||
// Public signature debug description: test8(kotlin.Function0<kotlin.Unit>){}
|
||||
fun test8(a: Function0<Unit>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test9(){}
|
||||
// Public signature: /test9|9214787561267119658[0]
|
||||
// Public signature debug description: test9(){}
|
||||
fun test9(): Unit
|
||||
|
||||
|
||||
@@ -1,20 +1,24 @@
|
||||
// CHECK:
|
||||
// Mangled name: #f(){}
|
||||
// Public signature: /f|5316533450599009716[0]
|
||||
// Public signature debug description: f(){}
|
||||
fun f(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test1@J(){}
|
||||
// Public signature: /test1|6869262091258899204[0]
|
||||
// Public signature debug description: test1@J(){}
|
||||
fun J.test1(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test2@J(){}
|
||||
// Public signature: /test2|-509977306549568233[0]
|
||||
// Public signature debug description: test2@J(){}
|
||||
fun J.test2(): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #test3@J(){}
|
||||
// Public signature: /test3|-2284942743287682332[0]
|
||||
// Public signature debug description: test3@J(){}
|
||||
fun J.test3(): Unit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user