aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/for_with.elna
blob: cfec5c09c62a7d275450f1c95784267862fbd9c9 (plain)
1
2
3
4
5
6
7
8
9
var
  actual: [3]Word := [3]Word{}

begin
  for element of [3]Word{ 1u, 2u, 3u } with i do
    actual[i] := i * element^
  end;
  assert(actual = [3]Word{ 1u, 4u, 9u })
end.