From 7d0d0eb69589ab8e0c8b036a3b642593a372b041 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 23 Aug 2026 20:01:55 +0200 Subject: Determine array type by the first element --- testsuite/runnable/for_with.elna | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuite/runnable/for_with.elna') 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. -- cgit v1.2.3