Files
kotlin-fork/compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt
T
Vladimir Sukharev 924898afb7 [K/N] KFC-446: K2 platform: Native alpha
Merge-request: KT-MR-7905
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-01-04 16:10:40 +00:00

27 lines
462 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JS_IR, NATIVE
// MODULE: lib
// FILE: Typography.kt
object Typography {
const val ellipsis: Char = 'O'
}
// MODULE: main(lib)
// FILE: main.kt
class A {
private companion object {
fun String.orEllipsis(): String {
return ellipsis
}
const val ellipsis = "${Typography.ellipsis}"
}
object B {
fun box() = "".orEllipsis()
}
}
fun box(): String {
return A.B.box() + "K"
}