[FIR2IR] Fix interpreting constants from const properties from other module
This commit is contained in:
committed by
TeamCityServer
parent
a7e6667648
commit
245bc7c8e2
+25
@@ -0,0 +1,25 @@
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user