mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 12:07:51 +00:00
23 lines
478 B
Nim
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)
|