diff options
| author | SAJJA EASWAR <eshwarsajja20@gmail.com> | 2026-01-25 22:59:36 +0530 |
|---|---|---|
| committer | SAJJA EASWAR <eshwarsajja20@gmail.com> | 2026-01-25 22:59:36 +0530 |
| commit | ebc8b94baa6bc694cb4829e2eb2934a1f17fa6a1 (patch) | |
| tree | 71b952ad455bf17d5bdea01472f0e2297f25eabe /tests/features/test_bool_mutability.zc | |
| parent | 863118c95caac0d69a35f6ae4d2e83844734a8a1 (diff) | |
| parent | 489336b2101bf16edeec7bfc4379408eb19b936e (diff) | |
Merge branch 'main' into pr-109
Diffstat (limited to 'tests/features/test_bool_mutability.zc')
| -rw-r--r-- | tests/features/test_bool_mutability.zc | 6 |
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"); } |
