[IR] update testdata: super and receiver for field accesses

This commit is contained in:
Zalim Bashorov
2020-11-10 03:10:13 +03:00
committed by teamcityserver
parent 029ee6f2e7
commit a6b408978f
50 changed files with 294 additions and 294 deletions
+38 -38
View File
@@ -18,38 +18,38 @@ data class Test1 {
get
operator fun component1(): Int {
return #x
return <this>.#x
}
operator fun component2(): String {
return #y
return <this>.#y
}
operator fun component3(): Any {
return #z
return <this>.#z
}
fun copy(x: Int = #x, y: String = #y, z: Any = #z): Test1 {
fun copy(x: Int = <this>.#x, y: String = <this>.#y, z: Any = <this>.#z): Test1 {
return Test1(x = x, y = y, z = z)
}
override fun toString(): String {
return "Test1(" +
"x=" +
#x +
<this>.#x +
", " +
"y=" +
#y +
<this>.#y +
", " +
"z=" +
#z +
<this>.#z +
")"
}
override fun hashCode(): Int {
var result: Int = #x.hashCode()
result = result.times(other = 31).plus(other = #y.hashCode())
result = result.times(other = 31).plus(other = #z.hashCode())
var result: Int = <this>.#x.hashCode()
result = result.times(other = 31).plus(other = <this>.#y.hashCode())
result = result.times(other = 31).plus(other = <this>.#z.hashCode())
return result
}
@@ -62,13 +62,13 @@ data class Test1 {
}
val tmp0_other_with_cast: Test1 = other as Test1
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
}
when {
EQEQ(arg0 = #z, arg1 = #z).not() -> return false
EQEQ(arg0 = <this>.#z, arg1 = tmp0_other_with_cast.#z).not() -> return false
}
return true
}
@@ -87,24 +87,24 @@ data class Test2 {
get
operator fun component1(): Any? {
return #x
return <this>.#x
}
fun copy(x: Any? = #x): Test2 {
fun copy(x: Any? = <this>.#x): Test2 {
return Test2(x = x)
}
override fun toString(): String {
return "Test2(" +
"x=" +
#x +
<this>.#x +
")"
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = #x, arg1 = null) -> 0
true -> #x.hashCode()
EQEQ(arg0 = <this>.#x, arg1 = null) -> 0
true -> <this>.#x.hashCode()
}
}
@@ -117,7 +117,7 @@ data class Test2 {
}
val tmp0_other_with_cast: Test2 = other as Test2
when {
EQEQ(arg0 = #x, arg1 = #x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
}
return true
}
@@ -148,51 +148,51 @@ data class Test3 {
get
operator fun component1(): Double {
return #d
return <this>.#d
}
operator fun component2(): Double? {
return #dn
return <this>.#dn
}
operator fun component3(): Float {
return #f
return <this>.#f
}
operator fun component4(): Float? {
return #df
return <this>.#df
}
fun copy(d: Double = #d, dn: Double? = #dn, f: Float = #f, df: Float? = #df): Test3 {
fun copy(d: Double = <this>.#d, dn: Double? = <this>.#dn, f: Float = <this>.#f, df: Float? = <this>.#df): Test3 {
return Test3(d = d, dn = dn, f = f, df = df)
}
override fun toString(): String {
return "Test3(" +
"d=" +
#d +
<this>.#d +
", " +
"dn=" +
#dn +
<this>.#dn +
", " +
"f=" +
#f +
<this>.#f +
", " +
"df=" +
#df +
<this>.#df +
")"
}
override fun hashCode(): Int {
var result: Int = #d.hashCode()
var result: Int = <this>.#d.hashCode()
result = result.times(other = 31).plus(other = when {
EQEQ(arg0 = #dn, arg1 = null) -> 0
true -> #dn.hashCode()
EQEQ(arg0 = <this>.#dn, arg1 = null) -> 0
true -> <this>.#dn.hashCode()
})
result = result.times(other = 31).plus(other = #f.hashCode())
result = result.times(other = 31).plus(other = <this>.#f.hashCode())
result = result.times(other = 31).plus(other = when {
EQEQ(arg0 = #df, arg1 = null) -> 0
true -> #df.hashCode()
EQEQ(arg0 = <this>.#df, arg1 = null) -> 0
true -> <this>.#df.hashCode()
})
return result
}
@@ -206,16 +206,16 @@ data class Test3 {
}
val tmp0_other_with_cast: Test3 = other as Test3
when {
EQEQ(arg0 = #d, arg1 = #d).not() -> return false
EQEQ(arg0 = <this>.#d, arg1 = tmp0_other_with_cast.#d).not() -> return false
}
when {
EQEQ(arg0 = #dn, arg1 = #dn).not() -> return false
EQEQ(arg0 = <this>.#dn, arg1 = tmp0_other_with_cast.#dn).not() -> return false
}
when {
EQEQ(arg0 = #f, arg1 = #f).not() -> return false
EQEQ(arg0 = <this>.#f, arg1 = tmp0_other_with_cast.#f).not() -> return false
}
when {
EQEQ(arg0 = #df, arg1 = #df).not() -> return false
EQEQ(arg0 = <this>.#df, arg1 = tmp0_other_with_cast.#df).not() -> return false
}
return true
}