have faith in the kotlin compiler: I just encounte...
# announcements
g
have faith in the kotlin compiler: I just encountered a bug that related to casting a value, the thing is that I remember wondering when I was writing this code "gee, I wonder why the compiler cant smart-cast this, oh well". The problem was that I was casting the wrong value, and once I'd corrected that problem I found that the compiler was indeed smart casting it for me. If I'd had more faith in the kotlin compiler and its ability to smart cast I woulda saved myself 10 minutes of debugging
👍 1