This is possible when a lambda's contract guarantees initialization of a variable.
by generating a box for the value. #KT-26126 Fixed