t9932.nim 385 B

123456789101112
  1. discard """
  2. cmd: "nim check $file"
  3. errormsg: "invalid type: 'typedesc[int]' in this context: 'array[0..0, typedesc[int]]' for var"
  4. nimout: '''
  5. t9932.nim(10, 5) Error: invalid type: 'type' in this context: 'array[0..0, type]' for var
  6. t9932.nim(11, 5) Error: invalid type: 'typedesc[int]' in this context: 'array[0..0, typedesc[int]]' for var
  7. '''
  8. """
  9. var y: array[1,type]
  10. var x = [int]