t6608.nim 277 B

12345678910111213141516
  1. discard """
  2. cmd: "nim c --hints:off $file"
  3. errormsg: "type mismatch: got <>"
  4. nimout: '''t6608.nim(13, 4) Error: type mismatch: got <>
  5. but expected one of:
  6. AcceptCB = proc (s: string){.closure.}'''
  7. """
  8. type
  9. AcceptCB = proc (s: string)
  10. proc x(x: AcceptCB) =
  11. x()
  12. x()