Files
kotlin-fork/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.sig.kt.txt
Dmitriy Dolovov 16d1e85932 IR text tests: Stable blank lines between declarations in class
Rework rendering of kt-like dump and signatures dump in order to avoid
unstable blank line between declarations of the same level:
1. No blank line for the first declaration inside the member scope of
the class.
2. Always a single blank line between each two subsequent declarations
inside the member scope of the class.
2023-11-30 08:32:35 +00:00

47 lines
2.0 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: Inv2
// Public signature: /Inv2|null[0]
interface Inv2<A : Any?, B : Any?> {
}
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String
// Public signature: /box|-9347091776561469[0]
// Public signature debug description: box(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}
// Public signature: /box|2173511048851971368[0]
// Public signature debug description: box(){}
fun box(): String
// CHECK JVM_IR:
// Mangled name: #check(0:0;0:1;kotlin.Function1<0:0,0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>}Inv2<0:0,0:1>
// Public signature: /check|5984400751488580697[0]
// Public signature debug description: check(0:0;0:1;kotlin.Function1<0:0,0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>}Inv2<0:0,0:1>
// CHECK JS_IR NATIVE:
// Mangled name: #check(0:0;0:1;kotlin.Function1<0:0,0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>}
// Public signature: /check|-3580207389157345567[0]
// Public signature debug description: check(0:0;0:1;kotlin.Function1<0:0,0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>}
fun <T : Any?, R : Any?> check(x: T, y: R, f: Function1<T, R>): Inv2<T, R>
// CHECK JVM_IR:
// Mangled name: #foo(){0§<kotlin.Any?>;1§<kotlin.Any?>}kotlin.Function1<0:0,0:1>
// Public signature: /foo|-9122187844133412005[0]
// Public signature debug description: foo(){0§<kotlin.Any?>;1§<kotlin.Any?>}kotlin.Function1<0:0,0:1>
// CHECK JS_IR NATIVE:
// Mangled name: #foo(){0§<kotlin.Any?>;1§<kotlin.Any?>}
// Public signature: /foo|5215108069702224664[0]
// Public signature debug description: foo(){0§<kotlin.Any?>;1§<kotlin.Any?>}
fun <X : Any?, Y : Any?> foo(): Function1<X, Y>
// CHECK JVM_IR:
// Mangled name: #test(){}Inv2<kotlin.String,kotlin.Int>
// Public signature: /test|1156894151612153537[0]
// Public signature debug description: test(){}Inv2<kotlin.String,kotlin.Int>
// CHECK JS_IR NATIVE:
// Mangled name: #test(){}
// Public signature: /test|6620506149988718649[0]
// Public signature debug description: test(){}
fun test(): Inv2<String, Int>