Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/callResolution/superAny.txt
T
Dmitriy Novozhilov bf1a00c73a [FIR] Rework resolution of declaration statuses
There is introduced algorithm of resolution with jumps: before
  resolution of some class we resolve all status of members of its
  supertypes, so we can properly determine inherited visibility
  and modifiers
2020-10-21 11:53:10 +03:00

32 lines
985 B
Plaintext
Vendored

FILE: superAny.kt
public abstract interface A : R|kotlin/Any| {
}
public open class B : R|kotlin/Any| {
public constructor(): R|B| {
super<R|kotlin/Any|>()
}
public open override operator fun equals(other: R|kotlin/Any?|): R|kotlin/Boolean| {
^equals this@R|/B|.super<R|kotlin/Any|>.R|kotlin/Any.equals|(R|<local>/other|)
}
public open override fun hashCode(): R|kotlin/Int| {
^hashCode this@R|/B|.super<R|kotlin/Any|>.R|kotlin/Any.hashCode|()
}
}
public final class C : R|A|, R|B| {
public constructor(): R|C| {
super<R|B|>()
}
public final override operator fun equals(other: R|kotlin/Any?|): R|kotlin/Boolean| {
^equals this@R|/C|.super<R|B|>.R|/B.equals|(R|<local>/other|)
}
public final override fun hashCode(): R|kotlin/Int| {
^hashCode this@R|/C|.super<R|B|>.R|/B.hashCode|()
}
}