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

type Color = (red, green, blue)

proc f()
var
  a: [Color.red]Int (* @Error Array dimension must be of type 'Word' or 'Int', but got 'Color' *)
return

end.