[IR] dumpKotlinLike: add testdata for FIR tests

This commit is contained in:
Zalim Bashorov
2020-11-20 18:18:14 +03:00
committed by teamcityserver
parent d7bd4240e1
commit c68040753d
298 changed files with 12186 additions and 0 deletions
@@ -0,0 +1,99 @@
data class A {
constructor(runA: @ExtensionFunctionType @ExtensionFunctionType Function2<A, String, Unit> = local fun A.<anonymous>(it: String) {
return Unit
}
) /* primary */ {
super/*Any*/()
/* <init>() */
}
val runA: @ExtensionFunctionType @ExtensionFunctionType Function2<A, String, Unit>
field = runA
get
fun component1(): @ExtensionFunctionType @ExtensionFunctionType Function2<A, String, Unit> {
return <this>.#runA
}
fun copy(runA: @ExtensionFunctionType @ExtensionFunctionType Function2<A, String, Unit> = <this>.#runA): A {
return A(runA = runA)
}
override fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
}
when {
other !is A -> return false
}
val tmp0_other_with_cast: A = other as A
when {
EQEQ(arg0 = <this>.#runA, arg1 = tmp0_other_with_cast.#runA).not() -> return false
}
return true
}
override fun hashCode(): Int {
return <this>.#runA.hashCode()
}
override fun toString(): String {
return "A(" + "runA=" + <this>.#runA + ")"
}
}
data class B {
constructor(x: Any = { // BLOCK
local class <no name provided> {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
<no name provided>()
}) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: Any
field = x
get
fun component1(): Any {
return <this>.#x
}
fun copy(x: Any = <this>.#x): B {
return B(x = x)
}
override fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
}
when {
other !is B -> return false
}
val tmp0_other_with_cast: B = other as B
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 "B(" + "x=" + <this>.#x + ")"
}
}