FIR2IR: change origin & operator flag in data classes making them closer to K1
Related to KT-54887
This commit is contained in:
committed by
Space Team
parent
5d35bfd88d
commit
1ba900be44
+4
-4
@@ -17,7 +17,7 @@ data class Test1<T : Any?> {
|
||||
return Test1<Any>(x = x)
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
override operator fun equals(other: Any?): Boolean {
|
||||
when {
|
||||
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
|
||||
}
|
||||
@@ -63,7 +63,7 @@ data class Test2<T : Number> {
|
||||
return Test2<Any>(x = x)
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
override operator fun equals(other: Any?): Boolean {
|
||||
when {
|
||||
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
|
||||
}
|
||||
@@ -106,7 +106,7 @@ data class Test3<T : Any?> {
|
||||
return Test3<Any>(x = x)
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
override operator fun equals(other: Any?): Boolean {
|
||||
when {
|
||||
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
|
||||
}
|
||||
@@ -149,7 +149,7 @@ data class Test4 {
|
||||
return Test4(x = x)
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
override operator fun equals(other: Any?): Boolean {
|
||||
when {
|
||||
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user