summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-25 15:23:44 +0100
committerubq323 <ubq323@ubq323.website>2024-06-25 15:23:44 +0100
commite48386449b1f50c9f9d9b0645c8c469c1d4cbe4a (patch)
tree633eadafb39f383899fa681aa68248f5b1f0a99e /tests
parent6aef97b52844b8868e5ada38ce0936619c1077a7 (diff)
allow local resolution into outer scopes
Diffstat (limited to 'tests')
-rw-r--r--tests/vars3.bth6
-rw-r--r--tests/vars3.out1
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/vars3.bth b/tests/vars3.bth
new file mode 100644
index 0000000..19e82fa
--- /dev/null
+++ b/tests/vars3.bth
@@ -0,0 +1,6 @@
+(do
+ (set x 1)
+ (set y 10)
+ (let (x 2)
+ (let (y 20)
+ (+ x y))))
diff --git a/tests/vars3.out b/tests/vars3.out
new file mode 100644
index 0000000..2bd5a0a
--- /dev/null
+++ b/tests/vars3.out
@@ -0,0 +1 @@
+22