From 3e86f68fb89870a7ee716eb4c90903bff7f1cea3 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 11 Nov 2022 20:41:29 +0100 Subject: allow def in while/until --- tests/test.mew | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/test.mew b/tests/test.mew index 98ad5fa..904127d 100644 --- a/tests/test.mew +++ b/tests/test.mew @@ -234,6 +234,12 @@ (while (> y 0) (set x (+ x y)) (set y (dec y))) + x)) + (test 42 (loc (x 27 y 5) + (while (> y 0) + (def z (+ x y)) + (set x z) + (set y (dec y))) x))) (test-group "until" -- cgit 1.4.1