raz
/
conform
/
err
/ ConstArrayToSlice.raz
about
files
log
releases
feed
13 lines · 217 B ·
raw
·
history
· last change
4402a682
1
(* A slice of an array constant is a []const T (report 4). *)
2
module
ConstArrayToSlice;
3
4
const
Primes: [
3
]
INT
= [
2
,
3
,
5
];
5
6
proc
main*;
7
var
s: []
INT
;
8
begin
9
s := Primes;
10
s[
0
] :=
0
;
11
end
;
12
13
end
ConstArrayToSlice.