Files
Nim/tests/effects/tgcsafe2.nim
2018-02-10 20:55:22 +01:00

13 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")