This commit is contained in:
Araq 2017-10-14 22:12:23 +02:00
commit 9af9480340
2 changed files with 15 additions and 12 deletions

View file

@ -0,0 +1,12 @@
discard """
errormsg: ''' (proc (s: string) = res &= &(s, "abc"), nil) is not GC safe'''
line: 11
"""
#5620
var res = ""
proc takeCallback(foo: (proc(s: string) {.gcsafe.})) =
foo "string"
takeCallback(proc (s: string) =
res &= s & "abc")