c898b264ba
This commit fixes the receiver of these method in FIR2IR code by removing a particular hack. However, as the consequence of it 2 black box tests become broken in K2. The reason is KT-54952 which is not yet fixed Related to KT-54887
38 lines
641 B
Kotlin
Vendored
38 lines
641 B
Kotlin
Vendored
@JvmInline
|
|
value class Z {
|
|
constructor(s: String) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val s: String
|
|
field = s
|
|
get
|
|
|
|
override operator fun equals(other: Any?): Boolean {
|
|
when {
|
|
other !is Z -> return false
|
|
}
|
|
val tmp0_other_with_cast: Z = other as Z
|
|
when {
|
|
EQEQ(arg0 = <this>.#s, arg1 = tmp0_other_with_cast.#s).not() -> return false
|
|
}
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
return <this>.#s.hashCode()
|
|
}
|
|
|
|
override fun toString(): String {
|
|
return "Z(s=" + <this>.#s + ")"
|
|
}
|
|
|
|
}
|
|
|
|
val equals: KFunction2<Z, Any?, Boolean>
|
|
field = Z::equals
|
|
get
|
|
|