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/array_constructor.elna | |
| parent | bf41d022ce9736a92097f416ab96fca7ab4594ca (diff) | |
| download | elna-7d0d0eb69589ab8e0c8b036a3b642593a372b041.tar.gz | |
Determine array type by the first element
Diffstat (limited to 'testsuite/runnable/array_constructor.elna')
| -rw-r--r-- | testsuite/runnable/array_constructor.elna | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/runnable/array_constructor.elna b/testsuite/runnable/array_constructor.elna index feefbe7..0e7b08b 100644 --- a/testsuite/runnable/array_constructor.elna +++ b/testsuite/runnable/array_constructor.elna @@ -1,11 +1,11 @@ var - a: [3]Int := [3]Int{1, 2, 3} - b: [2]Int := [2]Int{4} + a: [3]Int := [1, 2, 3] + b: [2]Int := [4, 0] begin assert(a[1] = 1 & a[2] = 2 & a[3] = 3); assert(b[1] = 4 & b[2] = 0); - a := [3]Int{5, 6, 7}; + a := [5, 6, 7]; assert(a[1] = 5 & a[2] = 6 & a[3] = 7) end. |
