fix: top level block, even isolated, is treated as a lambda too
This commit is contained in:
1 parent
c0cf190452
commit
4dc73b91c2
2 files changed
+7
-4
No files matched your search
@@ -47,7 +47,7 @@ One interesting way of using closure isolation is to keep state of the functions
|
||||
>>> 0
|
||||
>>> 1
|
||||
>>> 2
|
||||
>> void
|
||||
>>> void
|
||||
|
||||
Inner `counter` is not accessible from outside, no way; still it is kept
|
||||
between calls in the closure, as inner function `doit`, returned from the
|
||||
|
||||
Reference in new issue
Block a user