Files
kotlin-fork/compiler/testData/ir/irText/classes/qualifiedSuperCalls.sig.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

88 lines
2.8 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: CBoth
// Public signature: /CBoth|null[0]
class CBoth : ILeft, IRight {
// CHECK:
// Mangled name: CBoth#<init>(){}
// Public signature: /CBoth.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
// CHECK:
// Mangled name: CBoth#foo(){}
// Public signature: /CBoth.foo|-1041209573719867811[0]
// Public signature debug description: foo(){}
override fun foo(): Unit
// CHECK:
// Mangled name: CBoth{}bar
// Public signature: /CBoth.bar|-7864284097863469857[0]
// Public signature debug description: {}bar
override val bar: Int
// CHECK JVM_IR:
// Mangled name: CBoth#<get-bar>(){}kotlin.Int
// Public signature: /CBoth.bar.<get-bar>|-7403724005139201014[0]
// Public signature debug description: <get-bar>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: CBoth#<get-bar>(){}
// Public signature: /CBoth.bar.<get-bar>|6880642144337645699[0]
// Public signature debug description: <get-bar>(){}
override get(): Int
}
// CHECK:
// Mangled name: ILeft
// Public signature: /ILeft|null[0]
interface ILeft {
// CHECK:
// Mangled name: ILeft#foo(){}
// Public signature: /ILeft.foo|-1041209573719867811[0]
// Public signature debug description: foo(){}
fun foo(): Unit
// CHECK:
// Mangled name: ILeft{}bar
// Public signature: /ILeft.bar|-7864284097863469857[0]
// Public signature debug description: {}bar
val bar: Int
// CHECK JVM_IR:
// Mangled name: ILeft#<get-bar>(){}kotlin.Int
// Public signature: /ILeft.bar.<get-bar>|-7403724005139201014[0]
// Public signature debug description: <get-bar>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: ILeft#<get-bar>(){}
// Public signature: /ILeft.bar.<get-bar>|6880642144337645699[0]
// Public signature debug description: <get-bar>(){}
get(): Int
}
// CHECK:
// Mangled name: IRight
// Public signature: /IRight|null[0]
interface IRight {
// CHECK:
// Mangled name: IRight#foo(){}
// Public signature: /IRight.foo|-1041209573719867811[0]
// Public signature debug description: foo(){}
fun foo(): Unit
// CHECK:
// Mangled name: IRight{}bar
// Public signature: /IRight.bar|-7864284097863469857[0]
// Public signature debug description: {}bar
val bar: Int
// CHECK JVM_IR:
// Mangled name: IRight#<get-bar>(){}kotlin.Int
// Public signature: /IRight.bar.<get-bar>|-7403724005139201014[0]
// Public signature debug description: <get-bar>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: IRight#<get-bar>(){}
// Public signature: /IRight.bar.<get-bar>|6880642144337645699[0]
// Public signature debug description: <get-bar>(){}
get(): Int
}