[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,10 +1,4 @@
data class Some {
constructor(a: String, b: dynamic) /* primary */ {
super/*Any*/()
/* <init>() */
}
val a: String
field = a
get
@@ -13,6 +7,12 @@ data class Some {
field = b
get
constructor(a: String, b: dynamic) /* primary */ {
super/*Any*/()
/* <init>() */
}
operator fun component1(): String {
return <this>.#a
}
@@ -25,19 +25,6 @@ data class Some {
return Some(a = a, b = b)
}
override fun toString(): String {
return "Some(" + "a=" + <this>.#a + ", " + "b=" + <this>.#b + ")"
}
override fun hashCode(): Int {
var result: Int = <this>.#a.hashCode()
result = result.times(other = 31).plus(other = when {
EQEQ(arg0 = <this>.#b, arg1 = null) -> 0
else -> <this>.#b /*~> Any */.hashCode()
})
return result
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
@@ -55,6 +42,19 @@ data class Some {
return true
}
override fun hashCode(): Int {
var result: Int = <this>.#a.hashCode()
result = result.times(other = 31).plus(other = when {
EQEQ(arg0 = <this>.#b, arg1 = null) -> 0
else -> <this>.#b /*~> Any */.hashCode()
})
return result
}
override fun toString(): String {
return "Some(" + "a=" + <this>.#a + ", " + "b=" + <this>.#b + ")"
}
}
fun box(): String {
@@ -62,3 +62,4 @@ fun box(): String {
event.hashCode() /*~> Unit */
return "OK"
}