Minor, move irText tests on data classes to a subdirectory

This commit is contained in:
Alexander Udalov
2021-11-26 22:36:17 +01:00
parent a5fa69b8ee
commit 2fbd2e2a15
33 changed files with 135 additions and 102 deletions
@@ -0,0 +1,80 @@
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 fun toString(): String {
return "TestData(" + "nn=" + <this>.#nn + ")"
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = <this>.#nn, arg1 = null) -> 0
else -> <this>.#nn.hashCode()
}
}
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
}
}
inline class TestInline {
constructor(nn: Nothing?) /* primary */ {
super/*Any*/()
/* <init>() */
}
val nn: Nothing?
field = nn
get
override fun toString(): String {
return "TestInline(" + "nn=" + <this>.#nn + ")"
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = <this>.#nn, arg1 = null) -> 0
else -> <this>.#nn.hashCode()
}
}
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
}
}