Scope when expression with it

“breaking change” means that it changes the behaviour of existing code.
The fix is easy, but someone would need to do it.

In general if a change in the languare requires fixing existing code, it won’t be made.

This topic was already discussed here:
When desperately needs `it` - #25 by gladed2 and declaring a val inside the when clause was basically the outcome.

1 Like