summaryrefslogtreecommitdiff
path: root/tests/features/test_bool_mutability.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
commit7d1944ab9d2307f2736afe8520436872db1c7617 (patch)
tree7380a4f148f9ce0b70ed9f02cfa5e8561c783a7a /tests/features/test_bool_mutability.zc
parent8b720543f538862796fec0ff6b7ea12cb140bf0f (diff)
'let' it be
Diffstat (limited to 'tests/features/test_bool_mutability.zc')
-rw-r--r--tests/features/test_bool_mutability.zc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/features/test_bool_mutability.zc b/tests/features/test_bool_mutability.zc
index 553e871..5426b6f 100644
--- a/tests/features/test_bool_mutability.zc
+++ b/tests/features/test_bool_mutability.zc
@@ -1,7 +1,7 @@
test "boolean_mutability" {
- // Regression test for issue where 'var b = true' was inferred as const
- var b = true;
+ // Regression test for issue where 'let b = true' was inferred as const
+ let b = true;
assert(b, "Expected true");
// This assignment should be valid (previously failed with 'Cannot assign to const variable')
@@ -9,7 +9,7 @@ test "boolean_mutability" {
assert(!b, "Expected false after assignment");
// Verify explicit type works too
- var c: bool = true;
+ let c: bool = true;
c = false;
assert(!c, "Expected false for explicit type");
}