diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-23 20:01:55 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-23 20:01:55 +0200 |
| commit | 7d0d0eb69589ab8e0c8b036a3b642593a372b041 (patch) | |
| tree | cf3731cec0ab67a0d574450fbe24c3cff4a7a9e6 /testsuite/runnable/for_each_slice.elna | |
| parent | bf41d022ce9736a92097f416ab96fca7ab4594ca (diff) | |
| download | elna-7d0d0eb69589ab8e0c8b036a3b642593a372b041.tar.gz | |
Determine array type by the first element
Diffstat (limited to 'testsuite/runnable/for_each_slice.elna')
| -rw-r--r-- | testsuite/runnable/for_each_slice.elna | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/runnable/for_each_slice.elna b/testsuite/runnable/for_each_slice.elna index efdf961..5356bc8 100644 --- a/testsuite/runnable/for_each_slice.elna +++ b/testsuite/runnable/for_each_slice.elna @@ -1,6 +1,6 @@ var - actual: [4]Word := [4]Word{} - input: [4]Word := [4]Word{ 2u, 4u, 6u, 8u } + actual: [4]Word := [0u, 0u, 0u, 0u] + input: [4]Word := [2u, 4u, 6u, 8u] slice: []Word i: Word := 1u @@ -11,5 +11,5 @@ begin actual[i] := element^ * 2u; i := i + 1u end; - assert(actual = [4]Word{ 4u, 8u, 12u, 16u }) + assert(actual = [4u, 8u, 12u, 16u]) end. |
