Fleshgrinder
02/13/2020, 5:54 PMprivate const val
symbols are kept in the bytecode. I guess for reflection but what if this is not required? There should be some kind of annotation to drop these symbols after they are inlined everywhere, no? (Maybe should post this in #C0B9K7EP2 but wanted to first hear if someone has another reason than reflection to keep them.)Mike
02/13/2020, 6:32 PMconst
?
Otherwise, I agree. All private const val
should not appear in the bytecode.Fleshgrinder
02/13/2020, 6:41 PMprivate const val X = 1
produces this (IntelliJ Kotlin bytecode viewer).Fleshgrinder
02/13/2020, 6:41 PMMike
02/13/2020, 6:44 PMFleshgrinder
02/13/2020, 6:50 PMMike
02/13/2020, 7:29 PM