This commit is contained in:
Araq 2013-06-27 08:06:55 +02:00
commit ed56b8c173
2 changed files with 38 additions and 11 deletions

View file

@ -0,0 +1,18 @@
discard """
line: 18
errormsg: "type mismatch: got (proc (TScgi) | proc (PAsyncSocket, PStringTable, string))"
"""
#bug #442
import scgi, sockets, asyncio, strtabs
proc handleSCGIRequest[TScgi: TScgiState | PAsyncScgiState](s: TScgi) =
nil
proc handleSCGIRequest(client: PAsyncSocket, headers: PStringTable,
input: string) =
nil
proc test(handle: proc (client: PAsyncSocket, headers: PStringTable,
input: string), b: int) =
nil
test(handleSCGIRequest)