Files
kotlin-fork/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.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

25 lines
769 B
Kotlin
Vendored

// CHECK:
// Mangled name: MyRunnable
// Public signature: /MyRunnable|null[0]
fun interface MyRunnable {
// CHECK:
// Mangled name: MyRunnable#run(){}
// Public signature: /MyRunnable.run|-991178076551934874[0]
// Public signature debug description: run(){}
abstract fun run(): Unit
}
// CHECK:
// Mangled name: #foo(kotlin.Array<out|MyRunnable>...){}
// Public signature: /foo|6689815842309055774[0]
// Public signature debug description: foo(kotlin.Array<out|MyRunnable>...){}
fun foo(vararg rs: MyRunnable): Unit
// CHECK:
// Mangled name: #test(kotlin.Any;MyRunnable){}
// Public signature: /test|-2252565057874021036[0]
// Public signature debug description: test(kotlin.Any;MyRunnable){}
fun test(a: Any, r: MyRunnable): Unit