Nim/tests/effects/tgcsafe2.nim
2017-10-15 09:32:53 +02:00

12 lines
238 B
Nim

discard """
errormsg: '''type mismatch: got (proc (s: string){.locks: 0.})'''
line: 11
"""
#5620
var res = ""
proc takeCallback(foo: (proc(s: string) {.gcsafe.})) =
foo "string"
takeCallback(proc (s: string) =
res &= s & "abc")