summary refs log blame commit diff stats
path: root/tests/bind/tnicerrorforsymchoice.nim
blob: 1431720e08db76d8ff9ff389d4f284402e36a6c7 (plain) (tree)
1
2
3
4
5
6
7
8
9

           
                                                                                                                                                                                     



                                      
                                                                     
         
                                                                    
                                       
         
 
                                                                     
                                                 
         

                       
discard """
  line: 18
  errormsg: "type mismatch: got (proc (s: TScgi: ScgiState or AsyncScgiState) | proc (client: AsyncSocket, headers: StringTableRef, input: string){.noSideEffect, gcsafe, locks: 0.}"
"""

#bug #442
import scgi, sockets, asyncio, strtabs
proc handleSCGIRequest[TScgi: ScgiState | AsyncScgiState](s: TScgi) =
  discard
proc handleSCGIRequest(client: AsyncSocket, headers: StringTableRef,
                       input: string) =
  discard

proc test(handle: proc (client: AsyncSocket, headers: StringTableRef,
                        input: string), b: int) =
  discard

test(handleSCGIRequest)