From ce1612a30c296955350e97cef265cd366b9eb08e Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Fri, 23 May 2025 13:43:35 -0400 Subject: [PATCH] compiler: decouple stack & bindings resetting --- src/main.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 49fd6a4..dfe5715 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,10 +74,15 @@ pub fn run(src: &'static str) { pub fn main() { env::set_var("RUST_BACKTRACE", "1"); let src = " -{let x = match (-1, (2)) with { - (x, (y)) -> y +let x = when { + false -> :no + nil -> { + let x = :no + x + } + :else -> :yes } x -} "; + "; run(src); }