Nested lambdas can't auto-capture free references from the outer scope. #1708
Labels
bug
Something isn't working
needs investigation
This needs to be looked into before its "ready for work"
As of #1648, the following works:
But the following doesn't:
If lambdas can automatically capture free references from the immediately surrounding scope, I'd expect (principle of least surprise) that they can also do so with free references from an outer scope surrounding that scope, with the surrounding scope being made to capture the reference intermediately.
That is, I'd expect this to happen implicitly:
The text was updated successfully, but these errors were encountered: