summary refs log tree commit diff stats
path: root/tests/errmsgs/t6608.nim
blob: 88cbf42fda9e23b00e2ae92e22a14423fe8c357f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
  cmd: "nim c --hints:off $file"
  errormsg: "type mismatch: got <>"
  nimout: '''t6608.nim(13, 4) Error: type mismatch: got <>
but expected one of:
AcceptCB = proc (s: string){.closure.}'''
"""

type
  AcceptCB = proc (s: string)

proc x(x: AcceptCB) =
  x()

x()