use myc::ast::environment::Environment; #[test] fn test_if_branch_redefinition_works() { let env = Environment::new(); let source = "(if true (do (def x 10) x) (do (def x 20) x))"; let result = env.compile(source).into_result(); assert!( result.is_ok(), "Defining the same variable in different 'if' branches should work: {:?}", result.err() ); }