tnicerrorforsymchoice.nim 614 B

12345678910111213141516171819
  1. discard """
  2. line: 18
  3. errormsg: "type mismatch: got (proc (s: TScgi: ScgiState or AsyncScgiState) | proc (client: AsyncSocket, headers: StringTableRef, input: string){.noSideEffect, gcsafe, locks: 0.}"
  4. """
  5. #bug #442
  6. import scgi, sockets, asyncio, strtabs
  7. proc handleSCGIRequest[TScgi: ScgiState | AsyncScgiState](s: TScgi) =
  8. discard
  9. proc handleSCGIRequest(client: AsyncSocket, headers: StringTableRef,
  10. input: string) =
  11. discard
  12. proc test(handle: proc (client: AsyncSocket, headers: StringTableRef,
  13. input: string), b: int) =
  14. discard
  15. test(handleSCGIRequest)