mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
16 lines
277 B
Nim
16 lines
277 B
Nim
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()
|