summary refs log tree commit diff stats
path: root/tests/bind/tnicerrorforsymchoice.nim
blob: a0e9091c3fbccf0b113937a4f952be6a3e0aaae3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  line: 18
  errormsg: "type mismatch: got (proc (TScgi) | proc (AsyncSocket, StringTableRef, string){.gcsafe.})"
"""

#bug #442
import scgi, sockets, asyncio, strtabs
proc handleSCGIRequest[TScgi: TScgiState | PAsyncScgiState](s: TScgi) =
  discard
proc handleSCGIRequest(client: PAsyncSocket, headers: PStringTable, 
                       input: string) =
  discard

proc test(handle: proc (client: PAsyncSocket, headers: PStringTable, 
                        input: string), b: int) =
  discard

test(handleSCGIRequest)