parent
f4f21c89e5
commit
086efac49b
2 changed files with 26 additions and 1 deletions
16
tests/errmsgs/t6608.nim
Normal file
16
tests/errmsgs/t6608.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue