https://kotlinlang.org logo
Title
h

Hamza

07/25/2019, 4:02 PM
not sure where to put this, please redirect me, but I think i discovered a compiler bug.
Adding a !! to the not null fixes it.
m

Marat Akhin

07/25/2019, 4:29 PM
I believe it's caused by different inference engines between current IDEA and compiler. If you have the time, could you create a YT issue?
k

karelpeeters

07/25/2019, 4:35 PM
Specifically, read the section "Working on a New Type Inference Algorithm" here https://blog.jetbrains.com/kotlin/2019/06/kotlin-1-3-40-released/
h

Hamza

07/26/2019, 12:22 AM
@karelpeeters There is a chance this issue isn't related to it. I actually discovered this bug in december, and i completely forgot to report it. i was cleaning up the code and just discovered it again