Files
kotlin-fork/compiler/testData/ir/irText/classes/dataClasses/kt31649.fir.kt.txt
T
Ivan Kylchik dd264cff50 [IR] Split const folding into necessary one and for optimizations only
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
2023-06-14 19:02:39 +00:00

82 lines
1.6 KiB
Kotlin
Vendored

data class TestData {
constructor(nn: Nothing?) /* primary */ {
super/*Any*/()
/* <init>() */
}
val nn: Nothing?
field = nn
get
operator fun component1(): Nothing? {
return <this>.#nn
}
fun copy(nn: Nothing? = <this>.#nn): TestData {
return TestData(nn = nn)
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
}
when {
other !is TestData -> return false
}
val tmp0_other_with_cast: TestData = other as TestData
when {
EQEQ(arg0 = <this>.#nn, arg1 = tmp0_other_with_cast.#nn).not() -> return false
}
return true
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = <this>.#nn, arg1 = null) -> 0
else -> <this>.#nn.hashCode()
}
}
override fun toString(): String {
return "TestData(" + "nn=" + <this>.#nn + ")"
}
}
value class TestInline {
constructor(nn: Nothing?) /* primary */ {
super/*Any*/()
/* <init>() */
}
val nn: Nothing?
field = nn
get
override operator fun equals(other: Any?): Boolean {
when {
other !is TestInline -> return false
}
val tmp0_other_with_cast: TestInline = other as TestInline
when {
EQEQ(arg0 = <this>.#nn, arg1 = tmp0_other_with_cast.#nn).not() -> return false
}
return true
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = <this>.#nn, arg1 = null) -> 0
else -> <this>.#nn.hashCode()
}
}
override fun toString(): String {
return "TestInline(" + "nn=" + <this>.#nn + ")"
}
}