Skip to content

Commit c314f39

Browse files
authored
Fix array range end exclusive syntax to invalidate execution cache (#7760)
1 parent 3b12d7a commit c314f39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/kcl-lib/src/parsing/ast/digest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ impl ArrayRangeExpression {
427427
compute_digest!(|slf, hasher| {
428428
hasher.update(slf.start_element.compute_digest());
429429
hasher.update(slf.end_element.compute_digest());
430+
hasher.update(if slf.end_inclusive { [1] } else { [0] });
430431
});
431432
}
432433

0 commit comments

Comments
 (0)