https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
u

uli

11/07/2023, 3:35 PM
Hi All, is there a way to have a static initializer in a kotlin native 1.9.20 shared library? Objects are initialized lazily and
@EagerInitialization
is deprecated.
e

Edoardo Luppi

11/07/2023, 3:43 PM
No other way. I've asked what the future of
@EagerInitialization
is in https://youtrack.jetbrains.com/issue/KT-51626/ I'd suggest to ask the same there.