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