[IR] update testdata: super and receiver for field accesses
This commit is contained in:
committed by
teamcityserver
parent
029ee6f2e7
commit
a6b408978f
@@ -14,30 +14,30 @@ data class A {
|
||||
get
|
||||
|
||||
operator fun component1(): Int {
|
||||
return #x
|
||||
return <this>.#x
|
||||
}
|
||||
|
||||
operator fun component2(): Int {
|
||||
return #y
|
||||
return <this>.#y
|
||||
}
|
||||
|
||||
fun copy(x: Int = #x, y: Int = #y): A {
|
||||
fun copy(x: Int = <this>.#x, y: Int = <this>.#y): A {
|
||||
return A(x = x, y = y)
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "A(" +
|
||||
"x=" +
|
||||
#x +
|
||||
<this>.#x +
|
||||
", " +
|
||||
"y=" +
|
||||
#y +
|
||||
<this>.#y +
|
||||
")"
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
var result: Int = #x.hashCode()
|
||||
result = result.times(other = 31).plus(other = #y.hashCode())
|
||||
var result: Int = <this>.#x.hashCode()
|
||||
result = result.times(other = 31).plus(other = <this>.#y.hashCode())
|
||||
return result
|
||||
}
|
||||
|
||||
@@ -50,10 +50,10 @@ data class A {
|
||||
}
|
||||
val tmp0_other_with_cast: A = other as A
|
||||
when {
|
||||
EQEQ(arg0 = #x, arg1 = #x).not() -> return false
|
||||
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
|
||||
}
|
||||
when {
|
||||
EQEQ(arg0 = #y, arg1 = #y).not() -> return false
|
||||
EQEQ(arg0 = <this>.#y, arg1 = tmp0_other_with_cast.#y).not() -> return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user