aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_element_of_const.elna
blob: a51822b73dcd3589215e81a0a17f1ed5f4b810d7 (plain)
1
2
3
4
5
6
7
8
9
10
module

proc f()
var
  a: const [2]Int := [1, 3]
begin
  a[1] := 6 (* @Error Cannot assign to a value of type 'const Int', because it is constant or contains constant members *)
return

end.