summary refs log blame commit diff stats
path: root/tests/closure/tinvalidclosure5.nim
blob: d03d93867ff7ab4e6ae6bd2624531e237082ef53 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                                             
discard """
  errormsg: "type mismatch: got <proc (){.closure, gcsafe, locks: 0.}> but expected 'A = proc (){.nimcall.}'"
  line: 9
"""

type A = proc() {.nimcall.}
proc main =
  let b = 1
  let a: A = proc() = echo b