Files
kotlin-fork/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.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

68 lines
1.9 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: IFoo
// Public signature: /IFoo|null[0]
interface IFoo {
// CHECK:
// Mangled name: IFoo@A{}foo
// Public signature: /IFoo.foo|1214000299789500455[0]
// Public signature debug description: @A{}foo
val A.foo: B
// CHECK JVM_IR:
// Mangled name: IFoo#<get-foo>@A(){}B
// Public signature: /IFoo.foo.<get-foo>|8070848468738985847[0]
// Public signature debug description: <get-foo>@A(){}B
// CHECK JS_IR NATIVE:
// Mangled name: IFoo#<get-foo>@A(){}
// Public signature: /IFoo.foo.<get-foo>|-1820743651074494698[0]
// Public signature debug description: <get-foo>@A(){}
get(): B
}
// CHECK:
// Mangled name: IInvoke
// Public signature: /IInvoke|null[0]
interface IInvoke {
// CHECK JVM_IR:
// Mangled name: IInvoke#invoke@B(){}kotlin.Int
// Public signature: /IInvoke.invoke|7560171197904259096[0]
// Public signature debug description: invoke@B(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: IInvoke#invoke@B(){}
// Public signature: /IInvoke.invoke|-8763880178141053779[0]
// Public signature debug description: invoke@B(){}
operator fun B.invoke(): Int
}
// CHECK:
// Mangled name: A
// Public signature: /A|null[0]
object A {
// CHECK:
// Mangled name: A#<init>(){}
// Public signature: /A.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
private constructor() /* primary */
}
// CHECK:
// Mangled name: B
// Public signature: /B|null[0]
object B {
// CHECK:
// Mangled name: B#<init>(){}
// Public signature: /B.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
private constructor() /* primary */
}
// CHECK:
// Mangled name: #test(IFoo;IInvoke){}
// Public signature: /test|8554265419982095815[0]
// Public signature debug description: test(IFoo;IInvoke){}
fun test(fooImpl: IFoo, invokeImpl: IInvoke): Unit