[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
+19
-18
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user