https://kotlinlang.org logo
#language-evolution
Title
# language-evolution
m

Mikhail

06/13/2022, 3:32 PM
why? it's a constant
2
j

Joffrey

06/13/2022, 3:36 PM
When compiling a module that uses this function, the compiler would need to inline the value of that constant, which might be a problem for backwards compatibility because you should be able to assume that changing a private constant doesn't require re-compiling dependent modules. I find it pretty reasonable that it breaks on constants too. This constant should be
@PublishedApi
in a way if you want to inline it in other modules
👍 1
12 Views