Files
kotlin-fork/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.sig.kt.txt
T
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

35 lines
1.1 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: SuspendRunnable
// Public signature: /SuspendRunnable|null[0]
fun interface SuspendRunnable {
// CHECK:
// Mangled name: SuspendRunnable#invoke(){}
// Public signature: /SuspendRunnable.invoke|-4663091332620260873[0]
// Public signature debug description: invoke(){}
abstract suspend fun invoke(): Unit
}
// CHECK JVM_IR:
// Mangled name: #bar(){}kotlin.Function0<kotlin.Unit>
// Public signature: /bar|-2077237772809994309[0]
// Public signature debug description: bar(){}kotlin.Function0<kotlin.Unit>
// CHECK JS_IR NATIVE:
// Mangled name: #bar(){}
// Public signature: /bar|496682602797471549[0]
// Public signature debug description: bar(){}
fun bar(): Function0<Unit>
// CHECK:
// Mangled name: #foo(SuspendRunnable){}
// Public signature: /foo|3528754128205426736[0]
// Public signature debug description: foo(SuspendRunnable){}
fun foo(s: SuspendRunnable): Unit
// CHECK:
// Mangled name: #test(kotlin.Function0<kotlin.Unit>){}
// Public signature: /test|6634439856618498021[0]
// Public signature debug description: test(kotlin.Function0<kotlin.Unit>){}
fun test(f: Function0<Unit>): Unit