aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_const_primitive.elna
blob: 22fef256ba93e7b3fb5262dc98d1f7817e82bcb2 (plain)
1
2
3
4
5
6
7
8
proc f()
var
  x: const Int := 4
begin
  x := 5 (* @Error Cannot assign to a value of type 'const Int', because it is constant or contains constant members *)
return

end.