1234567891011121314151617181920212223 |
- discard """
- cmd: "nim check $file"
- errormsg: "type mismatch: got <int literal(1), int literal(2), int literal(3)>"
- nimout: '''
- but expected one of:
- proc main(a, b, c: string)
- first type mismatch at position: 1
- required type: string
- but expression '1' is of type: int literal(1)
- expression: main(1, 2, 3)
- '''
- """
- const
- myconst = "abcdefghijklmnopqrstuvwxyz"
- proc main(a, b, c: string) {.deprecated: "use foo " & "instead " & myconst.} =
- return
- main(1, 2, 3)
|