blob: f97bd3f5589f0071693c45f03768214f2d5c9d1a (
plain)
1
2
3
4
5
6
7
8
9
10
|
type
Enumeration = (one, two, three)
var
x: [3]Int := [3]Int{ 1, 2, 3 }
y: []Int
begin
y := x[Enumeration.one to Enumeration.two] (* @Error Array index must be an integral type, but got 'Enumeration' *)
end.
|