Files
kotlin-fork/compiler/testData/ir/irText/firProblems/valueClassEquals.kt.txt
T
Vladimir Sukharev bae8b283c7 [IR] Normalize temp var names in Kotlin-like dump
^KT-61983 Fixed
2023-10-11 07:49:35 +00:00

37 lines
646 B
Kotlin
Vendored

@JvmInline
value class Z {
constructor(s: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
val s: String
field = s
get
override fun toString(): String {
return "Z(" + "s=" + <this>.#s + ")"
}
override fun hashCode(): Int {
return <this>.#s.hashCode()
}
override operator fun equals(other: Any?): Boolean {
when {
other !is Z -> return false
}
val tmp_0: Z = other as Z
when {
EQEQ(arg0 = <this>.#s, arg1 = tmp_0.#s).not() -> return false
}
return true
}
}
val equals: KFunction2<Z, @ParameterName(name = "other") Any?, Boolean>
field = Z::equals
get