[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
@@ -42,86 +42,86 @@ data class Test1 {
get
operator fun component1(): Array<String> {
return #stringArray
return <this>.#stringArray
}
operator fun component2(): CharArray {
return #charArray
return <this>.#charArray
}
operator fun component3(): BooleanArray {
return #booleanArray
return <this>.#booleanArray
}
operator fun component4(): ByteArray {
return #byteArray
return <this>.#byteArray
}
operator fun component5(): ShortArray {
return #shortArray
return <this>.#shortArray
}
operator fun component6(): IntArray {
return #intArray
return <this>.#intArray
}
operator fun component7(): LongArray {
return #longArray
return <this>.#longArray
}
operator fun component8(): FloatArray {
return #floatArray
return <this>.#floatArray
}
operator fun component9(): DoubleArray {
return #doubleArray
return <this>.#doubleArray
}
fun copy(stringArray: Array<String> = #stringArray, charArray: CharArray = #charArray, booleanArray: BooleanArray = #booleanArray, byteArray: ByteArray = #byteArray, shortArray: ShortArray = #shortArray, intArray: IntArray = #intArray, longArray: LongArray = #longArray, floatArray: FloatArray = #floatArray, doubleArray: DoubleArray = #doubleArray): Test1 {
fun copy(stringArray: Array<String> = <this>.#stringArray, charArray: CharArray = <this>.#charArray, booleanArray: BooleanArray = <this>.#booleanArray, byteArray: ByteArray = <this>.#byteArray, shortArray: ShortArray = <this>.#shortArray, intArray: IntArray = <this>.#intArray, longArray: LongArray = <this>.#longArray, floatArray: FloatArray = <this>.#floatArray, doubleArray: DoubleArray = <this>.#doubleArray): Test1 {
return Test1(stringArray = stringArray, charArray = charArray, booleanArray = booleanArray, byteArray = byteArray, shortArray = shortArray, intArray = intArray, longArray = longArray, floatArray = floatArray, doubleArray = doubleArray)
}
override fun toString(): String {
return "Test1(" +
"stringArray=" +
dataClassArrayMemberToString(arg0 = #stringArray) +
dataClassArrayMemberToString(arg0 = <this>.#stringArray) +
", " +
"charArray=" +
dataClassArrayMemberToString(arg0 = #charArray) +
dataClassArrayMemberToString(arg0 = <this>.#charArray) +
", " +
"booleanArray=" +
dataClassArrayMemberToString(arg0 = #booleanArray) +
dataClassArrayMemberToString(arg0 = <this>.#booleanArray) +
", " +
"byteArray=" +
dataClassArrayMemberToString(arg0 = #byteArray) +
dataClassArrayMemberToString(arg0 = <this>.#byteArray) +
", " +
"shortArray=" +
dataClassArrayMemberToString(arg0 = #shortArray) +
dataClassArrayMemberToString(arg0 = <this>.#shortArray) +
", " +
"intArray=" +
dataClassArrayMemberToString(arg0 = #intArray) +
dataClassArrayMemberToString(arg0 = <this>.#intArray) +
", " +
"longArray=" +
dataClassArrayMemberToString(arg0 = #longArray) +
dataClassArrayMemberToString(arg0 = <this>.#longArray) +
", " +
"floatArray=" +
dataClassArrayMemberToString(arg0 = #floatArray) +
dataClassArrayMemberToString(arg0 = <this>.#floatArray) +
", " +
"doubleArray=" +
dataClassArrayMemberToString(arg0 = #doubleArray) +
dataClassArrayMemberToString(arg0 = <this>.#doubleArray) +
")"
}
override fun hashCode(): Int {
var result: Int = dataClassArrayMemberHashCode(arg0 = #stringArray)
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #charArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #booleanArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #byteArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #shortArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #intArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #longArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #floatArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #doubleArray))
var result: Int = dataClassArrayMemberHashCode(arg0 = <this>.#stringArray)
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = <this>.#charArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = <this>.#booleanArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = <this>.#byteArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = <this>.#shortArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = <this>.#intArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = <this>.#longArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = <this>.#floatArray))
result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = <this>.#doubleArray))
return result
}
@@ -134,31 +134,31 @@ dataClassArrayMemberToString(arg0 = #doubleArray) +
}
val tmp0_other_with_cast: Test1 = other as Test1
when {
EQEQ(arg0 = #stringArray, arg1 = #stringArray).not() -> return false
EQEQ(arg0 = <this>.#stringArray, arg1 = tmp0_other_with_cast.#stringArray).not() -> return false
}
when {
EQEQ(arg0 = #charArray, arg1 = #charArray).not() -> return false
EQEQ(arg0 = <this>.#charArray, arg1 = tmp0_other_with_cast.#charArray).not() -> return false
}
when {
EQEQ(arg0 = #booleanArray, arg1 = #booleanArray).not() -> return false
EQEQ(arg0 = <this>.#booleanArray, arg1 = tmp0_other_with_cast.#booleanArray).not() -> return false
}
when {
EQEQ(arg0 = #byteArray, arg1 = #byteArray).not() -> return false
EQEQ(arg0 = <this>.#byteArray, arg1 = tmp0_other_with_cast.#byteArray).not() -> return false
}
when {
EQEQ(arg0 = #shortArray, arg1 = #shortArray).not() -> return false
EQEQ(arg0 = <this>.#shortArray, arg1 = tmp0_other_with_cast.#shortArray).not() -> return false
}
when {
EQEQ(arg0 = #intArray, arg1 = #intArray).not() -> return false
EQEQ(arg0 = <this>.#intArray, arg1 = tmp0_other_with_cast.#intArray).not() -> return false
}
when {
EQEQ(arg0 = #longArray, arg1 = #longArray).not() -> return false
EQEQ(arg0 = <this>.#longArray, arg1 = tmp0_other_with_cast.#longArray).not() -> return false
}
when {
EQEQ(arg0 = #floatArray, arg1 = #floatArray).not() -> return false
EQEQ(arg0 = <this>.#floatArray, arg1 = tmp0_other_with_cast.#floatArray).not() -> return false
}
when {
EQEQ(arg0 = #doubleArray, arg1 = #doubleArray).not() -> return false
EQEQ(arg0 = <this>.#doubleArray, arg1 = tmp0_other_with_cast.#doubleArray).not() -> return false
}
return true
}
@@ -177,22 +177,22 @@ data class Test2<T : Any?> {
get
operator fun component1(): Array<T> {
return #genericArray
return <this>.#genericArray
}
fun copy(genericArray: Array<T> = #genericArray): Test2<T> {
fun copy(genericArray: Array<T> = <this>.#genericArray): Test2<T> {
return Test2<T>(genericArray = genericArray)
}
override fun toString(): String {
return "Test2(" +
"genericArray=" +
dataClassArrayMemberToString(arg0 = #genericArray) +
dataClassArrayMemberToString(arg0 = <this>.#genericArray) +
")"
}
override fun hashCode(): Int {
return dataClassArrayMemberHashCode(arg0 = #genericArray)
return dataClassArrayMemberHashCode(arg0 = <this>.#genericArray)
}
override operator fun equals(other: Any?): Boolean {
@@ -204,7 +204,7 @@ dataClassArrayMemberToString(arg0 = #genericArray) +
}
val tmp0_other_with_cast: Test2<T> = other as Test2<T>
when {
EQEQ(arg0 = #genericArray, arg1 = #genericArray).not() -> return false
EQEQ(arg0 = <this>.#genericArray, arg1 = tmp0_other_with_cast.#genericArray).not() -> return false
}
return true
}
@@ -223,24 +223,24 @@ data class Test3 {
get
operator fun component1(): Array<Any>? {
return #anyArrayN
return <this>.#anyArrayN
}
fun copy(anyArrayN: Array<Any>? = #anyArrayN): Test3 {
fun copy(anyArrayN: Array<Any>? = <this>.#anyArrayN): Test3 {
return Test3(anyArrayN = anyArrayN)
}
override fun toString(): String {
return "Test3(" +
"anyArrayN=" +
dataClassArrayMemberToString(arg0 = #anyArrayN) +
dataClassArrayMemberToString(arg0 = <this>.#anyArrayN) +
")"
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = #anyArrayN, arg1 = null) -> 0
true -> dataClassArrayMemberHashCode(arg0 = #anyArrayN)
EQEQ(arg0 = <this>.#anyArrayN, arg1 = null) -> 0
true -> dataClassArrayMemberHashCode(arg0 = <this>.#anyArrayN)
}
}
@@ -253,7 +253,7 @@ dataClassArrayMemberToString(arg0 = #anyArrayN) +
}
val tmp0_other_with_cast: Test3 = other as Test3
when {
EQEQ(arg0 = #anyArrayN, arg1 = #anyArrayN).not() -> return false
EQEQ(arg0 = <this>.#anyArrayN, arg1 = tmp0_other_with_cast.#anyArrayN).not() -> return false
}
return true
}
+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
}
+21 -21
View File
@@ -10,24 +10,24 @@ data class Test1<T : Any?> {
get
operator fun component1(): T {
return #x
return <this>.#x
}
fun copy(x: T = #x): Test1<T> {
fun copy(x: T = <this>.#x): Test1<T> {
return Test1<T>(x = x)
}
override fun toString(): String {
return "Test1(" +
"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()
}
}
@@ -40,7 +40,7 @@ data class Test1<T : Any?> {
}
val tmp0_other_with_cast: Test1<T> = other as Test1<T>
when {
EQEQ(arg0 = #x, arg1 = #x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
}
return true
}
@@ -59,22 +59,22 @@ data class Test2<T : Number> {
get
operator fun component1(): T {
return #x
return <this>.#x
}
fun copy(x: T = #x): Test2<T> {
fun copy(x: T = <this>.#x): Test2<T> {
return Test2<T>(x = x)
}
override fun toString(): String {
return "Test2(" +
"x=" +
#x +
<this>.#x +
")"
}
override fun hashCode(): Int {
return #x.hashCode()
return <this>.#x.hashCode()
}
override operator fun equals(other: Any?): Boolean {
@@ -86,7 +86,7 @@ data class Test2<T : Number> {
}
val tmp0_other_with_cast: Test2<T> = other as Test2<T>
when {
EQEQ(arg0 = #x, arg1 = #x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
}
return true
}
@@ -105,22 +105,22 @@ data class Test3<T : Any?> {
get
operator fun component1(): List<T> {
return #x
return <this>.#x
}
fun copy(x: List<T> = #x): Test3<T> {
fun copy(x: List<T> = <this>.#x): Test3<T> {
return Test3<T>(x = x)
}
override fun toString(): String {
return "Test3(" +
"x=" +
#x +
<this>.#x +
")"
}
override fun hashCode(): Int {
return #x.hashCode()
return <this>.#x.hashCode()
}
override operator fun equals(other: Any?): Boolean {
@@ -132,7 +132,7 @@ data class Test3<T : Any?> {
}
val tmp0_other_with_cast: Test3<T> = other as Test3<T>
when {
EQEQ(arg0 = #x, arg1 = #x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
}
return true
}
@@ -151,22 +151,22 @@ data class Test4 {
get
operator fun component1(): List<String> {
return #x
return <this>.#x
}
fun copy(x: List<String> = #x): Test4 {
fun copy(x: List<String> = <this>.#x): Test4 {
return Test4(x = x)
}
override fun toString(): String {
return "Test4(" +
"x=" +
#x +
<this>.#x +
")"
}
override fun hashCode(): Int {
return #x.hashCode()
return <this>.#x.hashCode()
}
override operator fun equals(other: Any?): Boolean {
@@ -178,7 +178,7 @@ data class Test4 {
}
val tmp0_other_with_cast: Test4 = other as Test4
when {
EQEQ(arg0 = #x, arg1 = #x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
}
return true
}
@@ -18,20 +18,20 @@ class Test1<E : Any?> : IBase<E> {
private /*final field*/ val $$delegate_0: IBase<E> = i
override fun <B : Any?> foo(a: E, b: B) {
#$$delegate_0.foo<B>(a = a, b = b)
<this>.#$$delegate_0.foo<B>(a = a, b = b)
}
override val <C : Any?> C.id: Map<E, C>?
override get(): Map<E, C>? {
return (#$$delegate_0, <this>).<get-id><C>()
return (<this>.#$$delegate_0, <this>).<get-id><C>()
}
override var <D : Any?> List<D>.x: D?
override get(): D? {
return (#$$delegate_0, <this>).<get-x><D>()
return (<this>.#$$delegate_0, <this>).<get-x><D>()
}
override set(<set-?>: D?) {
(#$$delegate_0, <this>).<set-x><D>(<set-?> = <set-?>)
(<this>.#$$delegate_0, <this>).<set-x><D>(<set-?> = <set-?>)
}
}
@@ -50,20 +50,20 @@ class Test2 : IBase<String> {
private /*final field*/ val $$delegate_0: IBase<String> = j
override fun <B : Any?> foo(a: String, b: B) {
#$$delegate_0.foo<B>(a = a, b = b)
<this>.#$$delegate_0.foo<B>(a = a, b = b)
}
override val <C : Any?> C.id: Map<String, C>?
override get(): Map<String, C>? {
return (#$$delegate_0, <this>).<get-id><C>()
return (<this>.#$$delegate_0, <this>).<get-id><C>()
}
override var <D : Any?> List<D>.x: D?
override get(): D? {
return (#$$delegate_0, <this>).<get-x><D>()
return (<this>.#$$delegate_0, <this>).<get-x><D>()
}
override set(<set-?>: D?) {
(#$$delegate_0, <this>).<set-x><D>(<set-?> = <set-?>)
(<this>.#$$delegate_0, <this>).<set-x><D>(<set-?> = <set-?>)
}
}
@@ -86,15 +86,15 @@ class Test1 : IBase {
private /*final field*/ val $$delegate_0: BaseImpl = BaseImpl
override fun bar(): Int {
return #$$delegate_0.bar()
return <this>.#$$delegate_0.bar()
}
override fun foo(x: Int, s: String) {
#$$delegate_0.foo(x = x, s = s)
<this>.#$$delegate_0.foo(x = x, s = s)
}
override fun String.qux() {
(#$$delegate_0, <this>).qux()
(<this>.#$$delegate_0, <this>).qux()
}
}
@@ -108,42 +108,42 @@ class Test2 : IBase, IOther {
private /*final field*/ val $$delegate_0: BaseImpl = BaseImpl
override fun bar(): Int {
return #$$delegate_0.bar()
return <this>.#$$delegate_0.bar()
}
override fun foo(x: Int, s: String) {
#$$delegate_0.foo(x = x, s = s)
<this>.#$$delegate_0.foo(x = x, s = s)
}
override fun String.qux() {
(#$$delegate_0, <this>).qux()
(<this>.#$$delegate_0, <this>).qux()
}
private /*final field*/ val $$delegate_1: IOther = otherImpl(x0 = "", y0 = 42)
override val Byte.z1: Int
override get(): Int {
return (#$$delegate_1, <this>).<get-z1>()
return (<this>.#$$delegate_1, <this>).<get-z1>()
}
override val x: String
override get(): String {
return #$$delegate_1.<get-x>()
return <this>.#$$delegate_1.<get-x>()
}
override var Byte.z2: Int
override get(): Int {
return (#$$delegate_1, <this>).<get-z2>()
return (<this>.#$$delegate_1, <this>).<get-z2>()
}
override set(<set-?>: Int) {
(#$$delegate_1, <this>).<set-z2>(<set-?> = <set-?>)
(<this>.#$$delegate_1, <this>).<set-z2>(<set-?> = <set-?>)
}
override var y: Int
override get(): Int {
return #$$delegate_1.<get-y>()
return <this>.#$$delegate_1.<get-y>()
}
override set(<set-?>: Int) {
#$$delegate_1.<set-y>(<set-?> = <set-?>)
<this>.#$$delegate_1.<set-y>(<set-?> = <set-?>)
}
}
@@ -11,28 +11,28 @@ class Test : J {
@NotNull()
override fun returnNotNull(): @EnhancedNullability String {
return #j.returnNotNull()
return <this>.#j.returnNotNull()
}
@Nullable()
override fun returnNullable(): @EnhancedNullability String? {
return #j.returnNullable()
return <this>.#j.returnNullable()
}
override fun returnsFlexible(): @FlexibleNullability String? {
return #j.returnsFlexible()
return <this>.#j.returnsFlexible()
}
override fun takeFlexible(x: @FlexibleNullability String?) {
#j.takeFlexible(x = x)
<this>.#j.takeFlexible(x = x)
}
override fun takeNotNull(x: @EnhancedNullability String) {
#j.takeNotNull(x = x)
<this>.#j.takeNotNull(x = x)
}
override fun takeNullable(x: @EnhancedNullability String?) {
#j.takeNullable(x = x)
<this>.#j.takeNullable(x = x)
}
}
@@ -28,7 +28,7 @@ class C : IFooBar {
private /*final field*/ val $$delegate_0: FooBarImpl = FooBarImpl
override fun foo() {
#$$delegate_0.foo()
<this>.#$$delegate_0.foo()
}
override fun bar() {
+1 -1
View File
@@ -104,7 +104,7 @@ abstract enum class TestEnum4 : Enum<TestEnum4> {
get
init {
#z = <this>.<get-x>()
<this>.#z = <this>.<get-x>()
}
override fun foo() {
@@ -33,14 +33,14 @@ open enum class A : Enum<A> {
super/*Enum*/<A>()
/* <init>() */
#prop1 = arg
<this>.#prop1 = arg
}
private constructor() {
super/*Enum*/<A>()
/* <init>() */
#prop1 = "default"
<this>.#prop1 = "default"
<this>.<set-prop3>(<set-?> = "empty")
}
@@ -56,7 +56,7 @@ class TestJFoo : IFoo {
private /*final field*/ val $$delegate_0: JFoo = JFoo()
override fun foo(): String {
return #$$delegate_0.foo() /*!! String */
return <this>.#$$delegate_0.foo() /*!! String */
}
}
@@ -70,7 +70,7 @@ class TestK1 : IFoo {
private /*final field*/ val $$delegate_0: K1 = K1()
override fun foo(): String {
return #$$delegate_0.foo() /*!! String */
return <this>.#$$delegate_0.foo() /*!! String */
}
}
@@ -84,7 +84,7 @@ class TestK2 : IFoo {
private /*final field*/ val $$delegate_0: K2 = K2()
override fun foo(): String {
return #$$delegate_0.foo()
return <this>.#$$delegate_0.foo()
}
}
@@ -98,7 +98,7 @@ class TestK3 : IFoo {
private /*final field*/ val $$delegate_0: K3 = K3()
override fun foo(): String {
return #$$delegate_0.foo()
return <this>.#$$delegate_0.foo()
}
}
@@ -112,7 +112,7 @@ class TestK4 : IFoo {
private /*final field*/ val $$delegate_0: K4 = K4()
override fun foo(): String {
return #$$delegate_0.foo() /*!! String */
return <this>.#$$delegate_0.foo() /*!! String */
}
}
+1 -1
View File
@@ -35,7 +35,7 @@ class TestInitValInInitBlock {
get
init {
#x = 0
<this>.#x = 0
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ class TestInitValInLambdaCalledOnce {
init {
1.run<Int, Unit>(block = local fun Int.<anonymous>() {
#x = 0
<this>.#x = 0
}
)
}
+3 -3
View File
@@ -54,7 +54,7 @@ class TestInitVarWithCustomSetter {
field = 0
get
set(value: Int) {
#x = value
<this>.#x = value
}
}
@@ -63,7 +63,7 @@ class TestInitVarWithCustomSetterWithExplicitCtor {
var x: Int
get
set(value: Int) {
#x = value
<this>.#x = value
}
init {
@@ -82,7 +82,7 @@ class TestInitVarWithCustomSetterInCtor {
var x: Int
get
set(value: Int) {
#x = value
<this>.#x = value
}
constructor() {
+3 -3
View File
@@ -12,12 +12,12 @@ inline class Test {
override fun toString(): String {
return "Test(" +
"x=" +
#x +
<this>.#x +
")"
}
override fun hashCode(): Int {
return #x.hashCode()
return <this>.#x.hashCode()
}
override operator fun equals(other: Any?): Boolean {
@@ -26,7 +26,7 @@ inline class Test {
}
val tmp0_other_with_cast: Test = other as Test
when {
EQEQ(arg0 = #x, arg1 = #x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
}
return true
}
@@ -33,12 +33,12 @@ inline class IC<TT : Any?> {
override fun toString(): String {
return "IC(" +
"c=" +
#c +
<this>.#c +
")"
}
override fun hashCode(): Int {
return #c.hashCode()
return <this>.#c.hashCode()
}
override operator fun equals(other: Any?): Boolean {
@@ -47,7 +47,7 @@ inline class IC<TT : Any?> {
}
val tmp0_other_with_cast: IC<TT> = other as IC<TT>
when {
EQEQ(arg0 = #c, arg1 = #c).not() -> return false
EQEQ(arg0 = <this>.#c, arg1 = tmp0_other_with_cast.#c).not() -> return false
}
return true
}
+10 -10
View File
@@ -10,24 +10,24 @@ data class TestData {
get
operator fun component1(): Nothing? {
return #nn
return <this>.#nn
}
fun copy(nn: Nothing? = #nn): TestData {
fun copy(nn: Nothing? = <this>.#nn): TestData {
return TestData(nn = nn)
}
override fun toString(): String {
return "TestData(" +
"nn=" +
#nn +
<this>.#nn +
")"
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = #nn, arg1 = null) -> 0
true -> #nn.hashCode()
EQEQ(arg0 = <this>.#nn, arg1 = null) -> 0
true -> <this>.#nn.hashCode()
}
}
@@ -40,7 +40,7 @@ data class TestData {
}
val tmp0_other_with_cast: TestData = other as TestData
when {
EQEQ(arg0 = #nn, arg1 = #nn).not() -> return false
EQEQ(arg0 = <this>.#nn, arg1 = tmp0_other_with_cast.#nn).not() -> return false
}
return true
}
@@ -61,14 +61,14 @@ inline class TestInline {
override fun toString(): String {
return "TestInline(" +
"nn=" +
#nn +
<this>.#nn +
")"
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = #nn, arg1 = null) -> 0
true -> #nn.hashCode()
EQEQ(arg0 = <this>.#nn, arg1 = null) -> 0
true -> <this>.#nn.hashCode()
}
}
@@ -78,7 +78,7 @@ inline class TestInline {
}
val tmp0_other_with_cast: TestInline = other as TestInline
when {
EQEQ(arg0 = #nn, arg1 = #nn).not() -> return false
EQEQ(arg0 = <this>.#nn, arg1 = tmp0_other_with_cast.#nn).not() -> return false
}
return true
}
@@ -13,22 +13,22 @@ data class A {
get
operator fun component1(): @ExtensionFunctionType Function2<A, String, Unit> {
return #runA
return <this>.#runA
}
fun copy(runA: @ExtensionFunctionType Function2<A, String, Unit> = #runA): A {
fun copy(runA: @ExtensionFunctionType Function2<A, String, Unit> = <this>.#runA): A {
return A(runA = runA)
}
override fun toString(): String {
return "A(" +
"runA=" +
#runA +
<this>.#runA +
")"
}
override fun hashCode(): Int {
return #runA.hashCode()
return <this>.#runA.hashCode()
}
override operator fun equals(other: Any?): Boolean {
@@ -40,7 +40,7 @@ data class A {
}
val tmp0_other_with_cast: A = other as A
when {
EQEQ(arg0 = #runA, arg1 = #runA).not() -> return false
EQEQ(arg0 = <this>.#runA, arg1 = tmp0_other_with_cast.#runA).not() -> return false
}
return true
}
@@ -70,22 +70,22 @@ data class B {
get
operator fun component1(): Any {
return #x
return <this>.#x
}
fun copy(x: Any = #x): B {
fun copy(x: Any = <this>.#x): B {
return B(x = x)
}
override fun toString(): String {
return "B(" +
"x=" +
#x +
<this>.#x +
")"
}
override fun hashCode(): Int {
return #x.hashCode()
return <this>.#x.hashCode()
}
override operator fun equals(other: Any?): Boolean {
@@ -97,7 +97,7 @@ data class B {
}
val tmp0_other_with_cast: B = other as B
when {
EQEQ(arg0 = #x, arg1 = #x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
}
return true
}
@@ -22,7 +22,7 @@ object Test : Base {
get
init {
#y = <this>.<get-x>()
<this>.#y = <this>.<get-x>()
}
}
@@ -47,7 +47,7 @@ class Test3 {
get
init {
#x = x
<this>.#x = x
}
}
@@ -25,7 +25,7 @@ class TestInitBlock : Base {
get
init {
#x = 0
<this>.#x = 0
}
constructor() {