Files
kotlin-fork/compiler/testData/ir/irText/js/native/nativeNativeKotlin.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

75 lines
2.1 KiB
Kotlin
Vendored

package foo
// CHECK:
// Mangled name: foo.A
// Public signature: foo/A|null[0]
open external class A {
// CHECK:
// Mangled name: foo.A#<init>(){}
// Public signature: foo/A.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
external constructor() /* primary */
// CHECK JS_IR NATIVE:
// Mangled name: foo.A#foo(){}
// Public signature: foo/A.foo|-1041209573719867811[0]
// Public signature debug description: foo(){}
external fun foo(): String
}
// CHECK:
// Mangled name: foo.B
// Public signature: foo/B|null[0]
open external class B : A {
// CHECK:
// Mangled name: foo.B#<init>(){}
// Public signature: foo/B.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
external constructor() /* primary */
// CHECK JS_IR NATIVE:
// Mangled name: foo.B#foo(){}
// Public signature: foo/B.foo|-1041209573719867811[0]
// Public signature debug description: foo(){}
external /* fake */ override fun foo(): String
// CHECK JS_IR NATIVE:
// Mangled name: foo.B#bar(){}
// Public signature: foo/B.bar|496682602797471549[0]
// Public signature debug description: bar(){}
external fun bar(): String
}
// CHECK:
// Mangled name: foo.C
// Public signature: foo/C|null[0]
class C : B {
// CHECK:
// Mangled name: foo.C#<init>(){}
// Public signature: foo/C.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
// CHECK JS_IR NATIVE:
// Mangled name: foo.C#bar(){}
// Public signature: foo/C.bar|496682602797471549[0]
// Public signature debug description: bar(){}
/* fake */ override fun bar(): String
// CHECK JS_IR NATIVE:
// Mangled name: foo.C#foo(){}
// Public signature: foo/C.foo|-1041209573719867811[0]
// Public signature debug description: foo(){}
/* fake */ override fun foo(): String
}
// CHECK JS_IR NATIVE:
// Mangled name: foo#box(){}
// Public signature: foo/box|2173511048851971368[0]
// Public signature debug description: box(){}
fun box(): String