tdetailed_position.nim 478 B

1234567891011121314151617181920212223
  1. discard """
  2. cmd: "nim check $file"
  3. errormsg: "type mismatch: got <int literal(1), int literal(2), int literal(3)>"
  4. nimout: '''
  5. but expected one of:
  6. proc main(a, b, c: string)
  7. first type mismatch at position: 1
  8. required type for a: string
  9. but expression '1' is of type: int literal(1)
  10. expression: main(1, 2, 3)
  11. '''
  12. """
  13. const
  14. myconst = "abcdefghijklmnopqrstuvwxyz"
  15. proc main(a, b, c: string) {.deprecated: "use foo " & "instead " & myconst.} =
  16. return
  17. main(1, 2, 3)