aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/compile_time_array_access.elna
blob: 566f3be7cc6e219caf7ff27d141d50659b211793 (plain)
1
2
3
4
5
6
7
var
  array: const [3]Int := [3]Int{ 1, 2, 3 }
  i: const Int := array[2]

begin
  assert(i = 2)
end.