blob: c9b28d0e0a3aa61f02597b2d0a0c20c3f3bf53c1 [file] [log] [blame]
// 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"
}