summary refs log tree commit diff stats
path: root/tests/effects/tgcsafe2.nim
blob: 6268592a9528f3be6774e9c6413517aa690b8cae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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")