[Tests] Use stable order for ir/kotlinLike dumps

^KT-65406
This commit is contained in:
Pavel Kunyavskiy
2024-02-05 16:23:41 +01:00
committed by Space Team
parent 0fa42a9c11
commit e6f4d6e6fa
1265 changed files with 43896 additions and 48472 deletions
@@ -1,22 +1,28 @@
fun foo(x: String = ""): String {
return x
}
class C {
val x: String
field = x
get
constructor(x: String = "") /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: String
field = x
get
}
fun use(fn: Function0<Any>): Any {
return fn.invoke()
fun foo(x: String = ""): String {
return x
}
fun testCtor(): Any {
return use(fn = { // BLOCK
local fun <init>(): C {
return C()
}
::<init>
})
}
fun testFn(): Any {
@@ -29,12 +35,7 @@ fun testFn(): Any {
})
}
fun testCtor(): Any {
return use(fn = { // BLOCK
local fun <init>(): C {
return C()
}
::<init>
})
fun use(fn: Function0<Any>): Any {
return fn.invoke()
}