tinvalidclosure.nim 228 B

12345678910111213
  1. discard """
  2. errormsg: "type mismatch: got <proc (x: int){.nimcall, gcsafe, locks: 0.}>"
  3. line: 12
  4. """
  5. proc ugh[T](x: T) {.nimcall.} =
  6. echo "ugha"
  7. proc takeCdecl(p: proc (x: int) {.cdecl.}) = discard
  8. takeCDecl(ugh[int])