In a let
block, I sometimes see ^let
annotations before my statements, and it's not clear to me what they mean or why they are there.
Is it to indicate that a value will be returned as the value of the let
call?
Screenshot:
These do in fact show you that those values are going to be returned from the let
expression. If you move to cursor to one of these hints and open intention actions (Alt + Enter), you get the option "Do not show lambda return expression hints", which I suppose is the name for this new feature.
This change was introduced in Kotlin 1.2.20, see IntelliJ IDEA Plugin Improvements in this post.