Found bug, unable to do an assignment expression with a syscall

This commit is contained in:
2025-12-09 23:45:10 -07:00
parent f19801d4e6
commit b21d6cc73e
8 changed files with 270 additions and 51 deletions

View File

@@ -243,6 +243,22 @@ fn test_max() -> Result<()> {
Ok(())
}
// #[test]
fn test_max_from_game() -> Result<()> {
let compiled = compile! {
result
r#"
let item = 0;
item = max(1, 2);
"#
};
println!("{compiled:?}");
assert!(compiled.is_empty());
Ok(())
}
#[test]
fn test_min() -> Result<()> {
let compiled = compile! {