[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
Vendored
+33
-33
@@ -1,15 +1,20 @@
|
||||
var operationScore: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
data class MyContainer {
|
||||
var i: Int
|
||||
field = i
|
||||
get
|
||||
set
|
||||
|
||||
constructor(i: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
var i: Int
|
||||
field = i
|
||||
get
|
||||
set
|
||||
|
||||
operator fun component1(): Int {
|
||||
return <this>.#i
|
||||
}
|
||||
@@ -18,14 +23,6 @@ data class MyContainer {
|
||||
return MyContainer(i = i)
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "MyContainer(" + "i=" + <this>.#i + ")"
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return <this>.#i.hashCode()
|
||||
}
|
||||
|
||||
override operator fun equals(other: Any?): Boolean {
|
||||
when {
|
||||
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
|
||||
@@ -40,29 +37,14 @@ data class MyContainer {
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var operationScore: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
operator fun MyContainer.get($context_receiver_0: Int, index: Int): Int {
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
return when {
|
||||
EQEQ(arg0 = index, arg1 = 0) -> <this>.<get-i>()
|
||||
else -> -1
|
||||
override fun hashCode(): Int {
|
||||
return <this>.#i.hashCode()
|
||||
}
|
||||
}
|
||||
|
||||
operator fun MyContainer.plusAssign($context_receiver_0: Int, other: MyContainer) {
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
<this>.<set-i>(<set-?> = <this>.<get-i>().plus(other = other.<get-i>()))
|
||||
}
|
||||
override fun toString(): String {
|
||||
return "MyContainer(" + "i=" + <this>.#i + ")"
|
||||
}
|
||||
|
||||
operator fun MyContainer.inc($context_receiver_0: Int): MyContainer {
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
return MyContainer(i = <this>.<get-i>().plus(other = 1))
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
@@ -84,3 +66,21 @@ fun box(): String {
|
||||
}
|
||||
}
|
||||
|
||||
operator fun MyContainer.get($context_receiver_0: Int, index: Int): Int {
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
return when {
|
||||
EQEQ(arg0 = index, arg1 = 0) -> <this>.<get-i>()
|
||||
else -> -1
|
||||
}
|
||||
}
|
||||
|
||||
operator fun MyContainer.inc($context_receiver_0: Int): MyContainer {
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
return MyContainer(i = <this>.<get-i>().plus(other = 1))
|
||||
}
|
||||
|
||||
operator fun MyContainer.plusAssign($context_receiver_0: Int, other: MyContainer) {
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
<this>.<set-i>(<set-?> = <this>.<get-i>().plus(other = other.<get-i>()))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user