diff --git a/src/interpreter/mod.rs b/src/interpreter/mod.rs index 75a921a..4b7cf46 100644 --- a/src/interpreter/mod.rs +++ b/src/interpreter/mod.rs @@ -390,5 +390,18 @@ global b global c ", ), + var_shadow: ( + "var a = 1; + { + var a = a + 2; + print a; + } + print a; + ", + Ok(()), + "3 +1 +" + ), ); }