When desperately needs `it`

it in when would be a breaking change, so probably it won’t happen.

1.let {
  when (2) {
    2 -> println(it)
  }
}

This code now compiles and prints 1. With it in when it would print 2. Breaking change.

1 Like