32297c0f21
#KT-57312 Fixed
26 lines
426 B
Kotlin
Vendored
26 lines
426 B
Kotlin
Vendored
// 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"
|
|
}
|