[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
+45
-44
@@ -1,14 +1,19 @@
|
||||
var operationScore: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
data class Result {
|
||||
val i: Int
|
||||
field = i
|
||||
get
|
||||
|
||||
constructor(i: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val i: Int
|
||||
field = i
|
||||
get
|
||||
|
||||
operator fun component1(): Int {
|
||||
return <this>.#i
|
||||
}
|
||||
@@ -17,14 +22,6 @@ data class Result {
|
||||
return Result(i = i)
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "Result(" + "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
|
||||
@@ -39,42 +36,14 @@ data class Result {
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var operationScore: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
operator fun Result.unaryMinus($context_receiver_0: Int): Result {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
override fun hashCode(): Int {
|
||||
return <this>.#i.hashCode()
|
||||
}
|
||||
return Result(i = <this>.<get-i>().unaryMinus())
|
||||
}
|
||||
|
||||
operator fun Result.unaryPlus($context_receiver_0: Int): Result {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
override fun toString(): String {
|
||||
return "Result(" + "i=" + <this>.#i + ")"
|
||||
}
|
||||
return Result(i = when {
|
||||
less(arg0 = <this>.<get-i>(), arg1 = 0) -> <this>.<get-i>().unaryMinus()
|
||||
else -> <this>.<get-i>()
|
||||
})
|
||||
}
|
||||
|
||||
operator fun Result.inc($context_receiver_0: Int): Result {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
}
|
||||
return Result(i = <this>.<get-i>().plus(other = 1))
|
||||
}
|
||||
|
||||
operator fun Result.dec($context_receiver_0: Int): Result {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
}
|
||||
return Result(i = <this>.<get-i>().minus(other = 1))
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
@@ -107,3 +76,35 @@ fun box(): String {
|
||||
else -> "fail"
|
||||
}
|
||||
}
|
||||
|
||||
operator fun Result.dec($context_receiver_0: Int): Result {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
}
|
||||
return Result(i = <this>.<get-i>().minus(other = 1))
|
||||
}
|
||||
|
||||
operator fun Result.inc($context_receiver_0: Int): Result {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
}
|
||||
return Result(i = <this>.<get-i>().plus(other = 1))
|
||||
}
|
||||
|
||||
operator fun Result.unaryMinus($context_receiver_0: Int): Result {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
}
|
||||
return Result(i = <this>.<get-i>().unaryMinus())
|
||||
}
|
||||
|
||||
operator fun Result.unaryPlus($context_receiver_0: Int): Result {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
|
||||
}
|
||||
return Result(i = when {
|
||||
less(arg0 = <this>.<get-i>(), arg1 = 0) -> <this>.<get-i>().unaryMinus()
|
||||
else -> <this>.<get-i>()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user