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_with.elna | |
| parent | bf41d022ce9736a92097f416ab96fca7ab4594ca (diff) | |
| download | elna-7d0d0eb69589ab8e0c8b036a3b642593a372b041.tar.gz | |
Determine array type by the first element
Diffstat (limited to 'testsuite/runnable/for_with.elna')
| -rw-r--r-- | testsuite/runnable/for_with.elna | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/runnable/for_with.elna b/testsuite/runnable/for_with.elna index cfec5c0..22ccb13 100644 --- a/testsuite/runnable/for_with.elna +++ b/testsuite/runnable/for_with.elna @@ -1,9 +1,9 @@ var - actual: [3]Word := [3]Word{} + actual: [3]Word := [0u, 0u, 0u] begin - for element of [3]Word{ 1u, 2u, 3u } with i do + for element of [1u, 2u, 3u] with i do actual[i] := i * element^ end; - assert(actual = [3]Word{ 1u, 4u, 9u }) + assert(actual = [1u, 4u, 9u]) end. |
