diff options
Diffstat (limited to 'tests/clos3.bth')
-rw-r--r-- | tests/clos3.bth | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/clos3.bth b/tests/clos3.bth new file mode 100644 index 0000000..4742391 --- /dev/null +++ b/tests/clos3.bth @@ -0,0 +1,16 @@ +(defn (counter) + (let (a 0) + (fn () + (set a (+ a 1)) + (say a)))) +(def c1 (counter)) +(def c2 (counter)) +(c1) +(c1) +(c2) +(c2) +(c2) +(c2) +(c1) +(c1) + |