twrong_at_operator.nim 640 B

1234567891011121314151617181920212223
  1. discard """
  2. errormsg: "type mismatch: got <array[0..0, type int]>"
  3. line: 22
  4. nimout: '''
  5. twrong_at_operator.nim(22, 30) Error: type mismatch: got <array[0..0, type int]>
  6. but expected one of:
  7. proc `@`[T](a: openArray[T]): seq[T]
  8. first type mismatch at position: 1
  9. required type for a: openArray[T]
  10. but expression '[int]' is of type: array[0..0, type int]
  11. proc `@`[IDX, T](a: sink array[IDX, T]): seq[T]
  12. first type mismatch at position: 1
  13. required type for a: sink array[IDX, T]
  14. but expression '[int]' is of type: array[0..0, type int]
  15. expression: @[int]
  16. '''
  17. disabled: "32bit"
  18. """
  19. # bug #7331
  20. var seqOfStrings: seq[int] = @[int]