dd264cff50
In this commit we have a lot of change in test data. This was caused by the way where we evaluate constants. We split constant evaluation into two distinct parts: only necessary evaluations for `fir2ir` (like const val and annotations) and optimizations for lowering. Now we don't do all constant evaluation on `fir2ir`, but IR dump is executed after this phase, so test data changed. #KT-58923
33 lines
576 B
Kotlin
Vendored
33 lines
576 B
Kotlin
Vendored
value class Test {
|
|
constructor(x: Int) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val x: Int
|
|
field = x
|
|
get
|
|
|
|
override operator fun equals(other: Any?): Boolean {
|
|
when {
|
|
other !is Test -> return false
|
|
}
|
|
val tmp0_other_with_cast: Test = other as Test
|
|
when {
|
|
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
|
|
}
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
return <this>.#x.hashCode()
|
|
}
|
|
|
|
override fun toString(): String {
|
|
return "Test(" + "x=" + <this>.#x + ")"
|
|
}
|
|
|
|
}
|
|
|