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

67 lines
2.4 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: KRunnable
// Public signature: /KRunnable|null[0]
fun interface KRunnable {
// CHECK:
// Mangled name: KRunnable#run(){}
// Public signature: /KRunnable.run|-991178076551934874[0]
// Public signature debug description: run(){}
abstract fun run(): Unit
}
// CHECK:
// Mangled name: #foo0(){}
// Public signature: /foo0|854950155582184407[0]
// Public signature debug description: foo0(){}
fun foo0(): Unit
// CHECK JVM_IR:
// Mangled name: #foo1(kotlin.IntArray...){}kotlin.Int
// Public signature: /foo1|7470134185704818303[0]
// Public signature debug description: foo1(kotlin.IntArray...){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #foo1(kotlin.IntArray...){}
// Public signature: /foo1|-6748328364529290172[0]
// Public signature debug description: foo1(kotlin.IntArray...){}
fun foo1(vararg xs: Int): Int
// CHECK JVM_IR:
// Mangled name: #testSamConstructor(){}KRunnable
// Public signature: /testSamConstructor|-5482155559435579976[0]
// Public signature debug description: testSamConstructor(){}KRunnable
// CHECK JS_IR NATIVE:
// Mangled name: #testSamConstructor(){}
// Public signature: /testSamConstructor|-7853436018033066699[0]
// Public signature debug description: testSamConstructor(){}
fun testSamConstructor(): KRunnable
// CHECK:
// Mangled name: #testSamConversion(){}
// Public signature: /testSamConversion|8522656930427711360[0]
// Public signature debug description: testSamConversion(){}
fun testSamConversion(): Unit
// CHECK:
// Mangled name: #testSamConversionOnAdapted(){}
// Public signature: /testSamConversionOnAdapted|2809940309834714371[0]
// Public signature debug description: testSamConversionOnAdapted(){}
fun testSamConversionOnAdapted(): Unit
// CHECK JVM_IR:
// Mangled name: #testSamCosntructorOnAdapted(){}KRunnable
// Public signature: /testSamCosntructorOnAdapted|655519272240812814[0]
// Public signature debug description: testSamCosntructorOnAdapted(){}KRunnable
// CHECK JS_IR NATIVE:
// Mangled name: #testSamCosntructorOnAdapted(){}
// Public signature: /testSamCosntructorOnAdapted|-7927635342265674772[0]
// Public signature debug description: testSamCosntructorOnAdapted(){}
fun testSamCosntructorOnAdapted(): KRunnable
// CHECK:
// Mangled name: #use(KRunnable){}
// Public signature: /use|3076420774911186780[0]
// Public signature debug description: use(KRunnable){}
fun use(r: KRunnable): Unit