charleskorn
11/14/2021, 8:30 PMsam
11/14/2021, 8:42 PMcharleskorn
11/14/2021, 10:49 PMGlobal properties are initialized lazily when the file they are defined in is first accessed. Previously global properties were initialized at the program startup. This is in line with Kotlin/JVM. As a workaround, properties that must be initialized at the program start can be marked with(from https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md). Before using, consult the@EagerInitialization
documentation.@EagerInitialization
sam
11/14/2021, 10:50 PM