twrong_at_operator.nim 651 B

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