tgcsafe2.nim 238 B

12345678910111213
  1. discard """
  2. errormsg: '''type mismatch: got (proc (s: string){.locks: 0.})'''
  3. line: 11
  4. """
  5. #5620
  6. var res = ""
  7. proc takeCallback(foo: (proc(s: string) {.gcsafe.})) =
  8. foo "string"
  9. takeCallback(proc (s: string) =
  10. res &= s & "abc")