t6608.nim 288 B

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