summaryrefslogtreecommitdiff
path: root/tests/clos5.bth
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-08-17 19:11:17 +0100
committerubq323 <ubq323@ubq323.website>2024-08-17 19:11:17 +0100
commitf0f04d875ec1db53371331774c0db9a11b072f19 (patch)
tree5f9d78f1f04eb585ebadb158a84f2a8dfc032320 /tests/clos5.bth
parent9b75f546b3a171a4e5afc7ed9d4969f73113c2c9 (diff)
clos5 test
Diffstat (limited to 'tests/clos5.bth')
-rw-r--r--tests/clos5.bth8
1 files changed, 8 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)))
+