Files
Nim/tests/errmsgs/t6608.nim
flywind 086efac49b fix #6608 (#14963)
* fix #6608
2020-07-14 09:22:48 +02:00

17 lines
288 B
Nim

discard """
cmd: "nim c --hints:off $file"
errormsg: "type mismatch: got <>"
nimout: '''t6608.nim(14, 4) Error: type mismatch: got <>
but expected one of:
AcceptCB = proc (s: string){.closure.}'''
line: 14
"""
type
AcceptCB = proc (s: string)
proc x(x: AcceptCB) =
x()
x()