tidx_lit_err1.nim 182 B

1234567
  1. discard """
  2. errormsg: "size of array exceeds range of index type 'range 1..2(Color)' by 3 elements"
  3. line: 6
  4. """
  5. type Color = enum Red, Green, Blue
  6. let y = [Green: 0, 1, 2, 3, 4]