hello everyone! I'm trying to understand some diff...
# compiler
l
hello everyone! I'm trying to understand some difficult Kotlin to bytecode mechanics, in order to achieve better awareness on how to approach null checking. Can anyone help me with this stackoverflow question? https://stackoverflow.com/questions/68375988/why-do-kotlin-null-checks-when-decompiled-to-java-declares-some-unused-variable
c
The unused variables are not declared by null-checking, but by inline functions. They are used by the compiler / debugger to know where an inlined function starts (I don't know the exact details though). The JVM knows they are unused, so they don't have any impact during runtime.
l
Thank you for your response! That is much appreciated