aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/slice_cast.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-08-23 20:01:55 +0200
committerEugen Wissner <belka@caraus.de>2026-08-23 20:01:55 +0200
commit7d0d0eb69589ab8e0c8b036a3b642593a372b041 (patch)
treecf3731cec0ab67a0d574450fbe24c3cff4a7a9e6 /testsuite/runnable/slice_cast.elna
parentbf41d022ce9736a92097f416ab96fca7ab4594ca (diff)
downloadelna-7d0d0eb69589ab8e0c8b036a3b642593a372b041.tar.gz
Determine array type by the first element
Diffstat (limited to 'testsuite/runnable/slice_cast.elna')
-rw-r--r--testsuite/runnable/slice_cast.elna2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/runnable/slice_cast.elna b/testsuite/runnable/slice_cast.elna
index 7c43959..ca093db 100644
--- a/testsuite/runnable/slice_cast.elna
+++ b/testsuite/runnable/slice_cast.elna
@@ -1,5 +1,5 @@
var
- ints: [4]Int32 := [4]Int32{ 1i32, 2i32, 3i32, 4i32 }
+ ints: [4]Int32 := [1i32, 2i32, 3i32, 4i32]
begin
assert(cast(ints[1u to 4u]: []Int8).length = #size(Int32) * ints.length)