16d1e85932
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.
25 lines
340 B
Kotlin
Vendored
25 lines
340 B
Kotlin
Vendored
interface I1 {
|
|
}
|
|
|
|
interface I2 {
|
|
}
|
|
|
|
operator fun I1.component1(): Int {
|
|
return 1
|
|
}
|
|
|
|
operator fun I2.component2(): String {
|
|
return ""
|
|
}
|
|
|
|
fun test(x: I1) {
|
|
when {
|
|
x !is I2 -> return Unit
|
|
}
|
|
// COMPOSITE {
|
|
val tmp_0: I2 = x /*as I2 */
|
|
val c1: Int = tmp_0 /*as I1 */.component1()
|
|
val c2: String = tmp_0.component2()
|
|
// }
|
|
}
|