summaryrefslogtreecommitdiff
path: root/tests/features/test_iterator_drop.zc
diff options
context:
space:
mode:
authorsuresh <sureshkrishnan.ai@gmail.com>2026-01-25 11:43:23 -0500
committersuresh <sureshkrishnan.ai@gmail.com>2026-01-25 11:43:23 -0500
commit26a0b55ed5bce4ad0ba2af109cfc96da7be2e34c (patch)
tree35ba8d7742b8ac727bfc6c4c73ab8b70f6eedb53 /tests/features/test_iterator_drop.zc
parent0bb69cb67078dfa921b5b8a42275ef31dfbc9a56 (diff)
parent489336b2101bf16edeec7bfc4379408eb19b936e (diff)
Merge branch 'main' into JsonType
# Conflicts: # examples/data/json_config.zc
Diffstat (limited to 'tests/features/test_iterator_drop.zc')
-rw-r--r--tests/features/test_iterator_drop.zc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/features/test_iterator_drop.zc b/tests/features/test_iterator_drop.zc
index 43e22a7..bc513df 100644
--- a/tests/features/test_iterator_drop.zc
+++ b/tests/features/test_iterator_drop.zc
@@ -1,7 +1,7 @@
import "../../std/iter.zc"
import "../../std/mem.zc"
-var DROP_CALLED = 0;
+let DROP_CALLED = 0;
struct DropIter {
count: int;
@@ -36,10 +36,10 @@ impl DropRange {
test "iterator_drop" {
{
- var range = DropRange { len: 3 };
+ let range = DropRange { len: 3 };
for i in range {
// Loop runs 3 times
- var _ignore = i;
+ let _ignore = i;
}
// Iterator should be dropped here
}