[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
+24
-23
@@ -1,26 +1,15 @@
|
||||
sealed class A : CharSequence {
|
||||
protected constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
data class B : A, CharSequence {
|
||||
val c: CharSequence
|
||||
field = c
|
||||
get
|
||||
|
||||
constructor(c: CharSequence) /* primary */ {
|
||||
super/*A*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val c: CharSequence
|
||||
field = c
|
||||
get
|
||||
|
||||
override val length: Int
|
||||
override get(): Int {
|
||||
return <this>.#c.<get-length>()
|
||||
}
|
||||
|
||||
override operator fun get(index: Int): Char {
|
||||
return <this>.#c.get(index = index)
|
||||
}
|
||||
@@ -37,14 +26,6 @@ sealed class A : CharSequence {
|
||||
return B(c = c)
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "B(" + "c=" + <this>.#c + ")"
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return <this>.#c.hashCode()
|
||||
}
|
||||
|
||||
override operator fun equals(other: Any?): Boolean {
|
||||
when {
|
||||
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
|
||||
@@ -59,6 +40,26 @@ sealed class A : CharSequence {
|
||||
return true
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return <this>.#c.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "B(" + "c=" + <this>.#c + ")"
|
||||
}
|
||||
|
||||
override val length: Int
|
||||
override get(): Int {
|
||||
return <this>.#c.<get-length>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user