feat: 支持复合运算符

This commit is contained in:
2026-06-06 20:20:05 +08:00
parent 87a7224c2d
commit 8c3f4aabe6
8 changed files with 177 additions and 8 deletions
@@ -97,3 +97,10 @@ fn regression_conditionalexpression_hash() {
"different expression types with same test must produce different hashes"
);
}
#[test]
fn hash_compound_vs_simple_assign() {
let hash_a = parse_to_hash("x=1");
let hash_b = parse_to_hash("x+=1");
assert_ne!(hash_a, hash_b, "x=1 and x+=1 must produce different hashes");
}