t20248.nim 353 B

123456789101112131415
  1. discard """
  2. cmd: "nim check --hints:off $file"
  3. errormsg: "ordinal type expected; given: Error Type"
  4. nimout: '''
  5. t20248.nim(10, 36) Error: ordinal type expected; given: Error Type
  6. t20248.nim(14, 20) Error: ordinal type expected; given: Error Type
  7. '''
  8. """
  9. type Vec[N: static[int]] = array[0 ..< N, float]
  10. var v: Vec[32]
  11. var stuff: array[0 ..< 16, int]