From e48386449b1f50c9f9d9b0645c8c469c1d4cbe4a Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 25 Jun 2024 15:23:44 +0100 Subject: allow local resolution into outer scopes --- tests/vars3.bth | 6 ++++++ tests/vars3.out | 1 + 2 files changed, 7 insertions(+) create mode 100644 tests/vars3.bth create mode 100644 tests/vars3.out (limited to 'tests') 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 -- cgit v1.2.3