From db58f43065c3b397754bb9efcb4a7376b2538131 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Fri, 23 Oct 2026 20:47:43 -0400 Subject: pit: Add tests, fix binding bug --- pit/examples/thebug2.pit | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pit/examples/thebug2.pit (limited to 'pit/examples/thebug2.pit') diff --git a/pit/examples/thebug2.pit b/pit/examples/thebug2.pit new file mode 100644 index 0000000..2376ff8 --- /dev/null +++ b/pit/examples/thebug2.pit @@ -0,0 +1,13 @@ + +(setq! z 40) +(setq! f + (lambda (x) + (lambda (y) + (lambda (w) + (+ + (funcall (lambda (z) (+ x y z)) 3) + w + z))))) +(let ((z 20)) + (print! (funcall (funcall (funcall f 1) 2) 3))) + -- cgit v1.3.1