diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-25 15:12:12 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-25 15:12:12 +0000 |
| commit | 7d1944ab9d2307f2736afe8520436872db1c7617 (patch) | |
| tree | 7380a4f148f9ce0b70ed9f02cfa5e8561c783a7a /tests/functions/test_attributes.zc | |
| parent | 8b720543f538862796fec0ff6b7ea12cb140bf0f (diff) | |
'let' it be
Diffstat (limited to 'tests/functions/test_attributes.zc')
| -rw-r--r-- | tests/functions/test_attributes.zc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/functions/test_attributes.zc b/tests/functions/test_attributes.zc index 6e52372..36ca3ad 100644 --- a/tests/functions/test_attributes.zc +++ b/tests/functions/test_attributes.zc @@ -50,8 +50,8 @@ struct NormalStruct { b: U32; } -var init_called = 0; -var cleanup_called = 0; +let init_called = 0; +let cleanup_called = 0; @constructor fn my_init() { @@ -79,18 +79,18 @@ fn unused_func() {} test "function attributes" { // @must_use: result used - no warning - var x = compute(); + let x = compute(); assert(x == 42, "compute() failed"); // No must_use - can discard optional_result(); // @inline works - var sum = fast_add(1, 2); + let sum = fast_add(1, 2); assert(sum == 3, "inline add failed"); // Combined attributes - var c = combined(); + let c = combined(); assert(c == 100, "combined failed"); // @must_use: result verified |
