[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
+27 -26
View File
@@ -1,14 +1,23 @@
class FinalList : SomeList<String> {
constructor() /* primary */ {
super/*SomeList*/<String>()
/* <init>() */
}
}
data class Some<T : Any?> {
val value: T
field = value
get
constructor(value: T) /* primary */ {
super/*Any*/()
/* <init>() */
}
val value: T
field = value
get
operator fun component1(): T {
return <this>.#value
}
@@ -17,17 +26,6 @@ data class Some<T : Any?> {
return Some<T>(value = value)
}
override fun toString(): String {
return "Some(" + "value=" + <this>.#value + ")"
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = <this>.#value, arg1 = null) -> 0
else -> <this>.#value.hashCode()
}
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
@@ -42,12 +40,20 @@ data class Some<T : Any?> {
return true
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = <this>.#value, arg1 = null) -> 0
else -> <this>.#value.hashCode()
}
}
override fun toString(): String {
return "Some(" + "value=" + <this>.#value + ")"
}
}
interface MyList<T : Any?> : List<Some<T>> {
}
open class SomeList<T : Any?> : MyList<T>, ArrayList<Some<T>> {
open class SomeList<T : Any?> : ArrayList<Some<T>>, MyList<T> {
constructor() /* primary */ {
super/*ArrayList*/<@FlexibleNullability Some<T>?>()
/* <init>() */
@@ -56,11 +62,6 @@ open class SomeList<T : Any?> : MyList<T>, ArrayList<Some<T>> {
}
class FinalList : SomeList<String> {
constructor() /* primary */ {
super/*SomeList*/<String>()
/* <init>() */
}
interface MyList<T : Any?> : List<Some<T>> {
}