diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/clos5.bth | 8 | ||||
-rw-r--r-- | tests/clos5.out | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/clos5.bth b/tests/clos5.bth new file mode 100644 index 0000000..f4202b9 --- /dev/null +++ b/tests/clos5.bth @@ -0,0 +1,8 @@ +(defn (f) + (def x 0) + (defn (i) x) + (set! x 100) + i) + +(say ((f))) + diff --git a/tests/clos5.out b/tests/clos5.out new file mode 100644 index 0000000..29d6383 --- /dev/null +++ b/tests/clos5.out @@ -0,0 +1 @@ +100 |