I saw byte code for `val variable = 90` and in the...
# announcements
r
I saw byte code for
val variable = 90
and in the decompiled bytecode it produced
int variable = true;
. I don't understand this ?
c
Looks like a compiler optimization. You're probably not using the value
Yup, seems to be the case, as soon as you use the value, e.g.
println(variable)
it becomes
90
again.
k
Well the
90
is in the bytecode, so it's not actually optimized away.
c
Huh, you're right.
g
This is a decompiler 🤷 It may be buggy, especially with Kotlin, if it's easy to reproduce you can report on Kotlin issue tracker
i
He could be using those standard functions.
r
standard functions ?
Okay I will report in issue tracker