compiler: decouple stack & bindings resetting

This commit is contained in:
Scott Richmond 2025-05-23 13:43:35 -04:00
parent 1ef0da5dd1
commit ce1612a30c

View File

@ -74,10 +74,15 @@ pub fn run(src: &'static str) {
pub fn main() { pub fn main() {
env::set_var("RUST_BACKTRACE", "1"); env::set_var("RUST_BACKTRACE", "1");
let src = " let src = "
{let x = match (-1, (2)) with { let x = when {
(x, (y)) -> y false -> :no
nil -> {
let x = :no
x
}
:else -> :yes
} }
x x
} "; ";
run(src); run(src);
} }