Files
kotlin-fork/compiler/testData/ir/irText/declarations/parameters/class.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.3 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: Test
// Public signature: /Test|null[0]
class Test<T0 : Any?> {
// CHECK:
// Mangled name: Test.TestInner
// Public signature: /Test.TestInner|null[0]
inner class TestInner<T2 : Any?> {
// CHECK:
// Mangled name: Test.TestInner#<init>(){}
// Public signature: /Test.TestInner.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
}
// CHECK:
// Mangled name: Test.TestNested
// Public signature: /Test.TestNested|null[0]
class TestNested<T1 : Any?> {
// CHECK:
// Mangled name: Test.TestNested#<init>(){}
// Public signature: /Test.TestNested.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
}
// CHECK:
// Mangled name: Test#<init>(){}
// Public signature: /Test.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
}
// CHECK:
// Mangled name: TestInterface
// Public signature: /TestInterface|null[0]
interface TestInterface<T : Any?> {
// CHECK:
// Mangled name: TestInterface.TestNestedInterface
// Public signature: /TestInterface.TestNestedInterface|null[0]
interface TestNestedInterface<TT : Any?> {
}
}