mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
13 lines
226 B
Nim
13 lines
226 B
Nim
discard """
|
|
errormsg: '''type mismatch: got <proc (s: string)>'''
|
|
line: 11
|
|
"""
|
|
#5620
|
|
var res = ""
|
|
|
|
proc takeCallback(foo: (proc(s: string) {.gcsafe.})) =
|
|
foo "string"
|
|
|
|
takeCallback(proc (s: string) =
|
|
res &= s & "abc")
|