Files
kotlin-fork/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.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: IFoo
// Public signature: /IFoo|null[0]
fun interface IFoo {
// CHECK:
// Mangled name: IFoo#foo(kotlin.Int){}
// Public signature: /IFoo.foo|-104159190164110731[0]
// Public signature debug description: foo(kotlin.Int){}
abstract fun foo(i: Int): Unit
}
// CHECK:
// Mangled name: #test(){}
// Public signature: /test|6620506149988718649[0]
// Public signature debug description: test(){}
fun test(): Unit
// CHECK:
// Mangled name: #useFoo(IFoo){}
// Public signature: /useFoo|-5008863146598304258[0]
// Public signature debug description: useFoo(IFoo){}
fun useFoo(foo: IFoo): Unit
// CHECK JVM_IR:
// Mangled name: #withVararg(kotlin.IntArray...){}kotlin.Int
// Public signature: /withVararg|2262699225692856772[0]
// Public signature debug description: withVararg(kotlin.IntArray...){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #withVararg(kotlin.IntArray...){}
// Public signature: /withVararg|2511032413940817176[0]
// Public signature debug description: withVararg(kotlin.IntArray...){}
fun withVararg(vararg xs: Int): Int