tinvalidclosure5.nim 209 B

1234567891011
  1. discard """
  2. errormsg: "type mismatch: got <proc (){.closure, gcsafe.}> 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