tinvalidclosure5.nim 219 B

1234567891011
  1. discard """
  2. errormsg: "type mismatch: got <proc (){.closure, gcsafe, locks: 0.}> but expected 'A = proc (){.nimcall.}'"
  3. line: 9
  4. """
  5. type A = proc() {.nimcall.}
  6. proc main =
  7. let b = 1
  8. let a: A = proc() = echo b