Files
Nim/tests/errmsgs/tdetailed_position.nim
Timothee Cour b80d70b0f3 fix tests
2019-07-08 15:24:20 -07:00

23 lines
478 B
Nim

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 for a: 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)