Files
kotlin-fork/compiler/testData/ir/irText/firProblems/SignatureClash.kt.txt
T
Dmitriy Dolovov 16d1e85932 IR text tests: Stable blank lines between declarations in class
Rework rendering of kt-like dump and signatures dump in order to avoid
unstable blank line between declarations of the same level:
1. No blank line for the first declaration inside the member scope of
the class.
2. Always a single blank line between each two subsequent declarations
inside the member scope of the class.
2023-11-30 08:32:35 +00:00

76 lines
1.3 KiB
Kotlin
Vendored

typealias Some = Function1<Any, String?>
object Factory {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
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 */ {
super/*Any*/()
/* <init>() */
}
val delegate: Delegate
field = delegate
get
override fun bar() {
<this>.#delegate.bar()
}
operator fun component1(): Delegate {
return <this>.#delegate
}
fun copy(delegate: Delegate = <this>.#delegate): DataClass {
return DataClass(delegate = delegate)
}
override fun toString(): String {
return "DataClass(" + "delegate=" + <this>.#delegate + ")"
}
override fun hashCode(): Int {
return <this>.#delegate.hashCode()
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
}
when {
other !is DataClass -> return false
}
val tmp_0: DataClass = other as DataClass
when {
EQEQ(arg0 = <this>.#delegate, arg1 = tmp_0.#delegate).not() -> return false
}
return true
}
}