[IR] add new testdata after rebase

This commit is contained in:
Zalim Bashorov
2020-11-05 23:27:41 +03:00
committed by teamcityserver
parent 3b1a6389ab
commit a5b224fda1
33 changed files with 1493 additions and 0 deletions
@@ -0,0 +1,91 @@
typealias Some = Function1<Any, String?>
object Factory {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
fun foo(a: String): String {
return "Alpha"
}
fun foo(a: String, f: Function1<Any, String?>): String {
return "Omega"
}
}
interface Base {
}
interface Delegate : Base {
abstract fun bar()
}
interface Derived : Delegate {
}
data class DataClass : Derived, Delegate {
constructor(delegate: Delegate) /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
val delegate: Delegate
field = delegate
get
override fun bar() {
#delegate.bar()
}
operator fun component1(): Delegate {
return #delegate
}
fun copy(delegate: Delegate = #delegate): DataClass {
return TODO("IrConstructorCall")
}
override fun toString(): String {
return "DataClass(" +
"delegate=" +
#delegate +
")"
}
override fun hashCode(): Int {
return #delegate.hashCode()
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
}
when {
other !is DataClass -> return false
}
val tmp0_other_with_cast: DataClass = other as DataClass
when {
EQEQ(arg0 = #delegate, arg1 = #delegate).not() -> return false
}
return true
}
}