[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,19 +1,7 @@
package test
class Foo<T : Any?> {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
inner class Inner<P : Any?> {
constructor(a: T, b: P) /* primary */ {
super/*Any*/()
/* <init>() */
}
val a: T
field = a
get
@@ -22,12 +10,20 @@ class Foo<T : Any?> {
field = b
get
constructor(a: T, b: P) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
}
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
inline fun <A : Any?, B : Any?> foo(a: A, b: B, x: Function2<A, B, Inner<B, A>>): Inner<B, A> {
return x.invoke(p1 = a, p2 = b)
}
fun box(): String {
@@ -35,3 +31,8 @@ fun box(): String {
val foo: Inner<String, String> = foo<String, String>(a = "O", b = "K", x = z::<init>/*<String>()*/)
return foo.<get-a>().plus(other = foo.<get-b>())
}
inline fun <A : Any?, B : Any?> foo(a: A, b: B, x: Function2<A, B, Inner<B, A>>): Inner<B, A> {
return x.invoke(p1 = a, p2 = b)
}