Files
kotlin-fork/compiler/testData/ir/irText/declarations/kt35550.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

49 lines
1.7 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: A
// Public signature: /A|null[0]
class A : I {
// CHECK:
// Mangled name: A#<init>(I){}
// Public signature: /A.<init>|605687824747116295[0]
// Public signature debug description: <init>(I){}
constructor(i: I) /* primary */
// CHECK:
// Mangled name: A@0:0{0§<kotlin.Any?>}id
// Public signature: /A.id|6409895071901545951[0]
// Public signature debug description: @0:0{0§<kotlin.Any?>}id
override val <T : Any?> T.id: T
// CHECK JVM_IR:
// Mangled name: A#<get-id>@0:0(){0§<kotlin.Any?>}0:0
// Public signature: /A.id.<get-id>|4983271234253098452[0]
// Public signature debug description: <get-id>@0:0(){0§<kotlin.Any?>}0:0
// CHECK JS_IR NATIVE:
// Mangled name: A#<get-id>@0:0(){0§<kotlin.Any?>}
// Public signature: /A.id.<get-id>|-1537502770664138716[0]
// Public signature debug description: <get-id>@0:0(){0§<kotlin.Any?>}
override get(): T
}
// CHECK:
// Mangled name: I
// Public signature: /I|null[0]
interface I {
// CHECK:
// Mangled name: I@0:0{0§<kotlin.Any?>}id
// Public signature: /I.id|6409895071901545951[0]
// Public signature debug description: @0:0{0§<kotlin.Any?>}id
val <T : Any?> T.id: T
// CHECK JVM_IR:
// Mangled name: I#<get-id>@0:0(){0§<kotlin.Any?>}0:0
// Public signature: /I.id.<get-id>|4983271234253098452[0]
// Public signature debug description: <get-id>@0:0(){0§<kotlin.Any?>}0:0
// CHECK JS_IR NATIVE:
// Mangled name: I#<get-id>@0:0(){0§<kotlin.Any?>}
// Public signature: /I.id.<get-id>|-1537502770664138716[0]
// Public signature debug description: <get-id>@0:0(){0§<kotlin.Any?>}
get(): T
}