Files
Nim/tests/bind/tnicerrorforsymchoice.nim
ringabout 5602183234 'lock levels' are deprecated, now a noop (#20539)
* 'lock levels' are deprecated, now a noop

* fixes tests
2022-10-11 09:17:09 +02:00

24 lines
768 B
Nim

discard """
errormsg: "type mismatch: got <proc (s: TScgi: ScgiState or AsyncScgiState) | proc (client: AsyncSocket, headers: StringTableRef, input: string){.noSideEffect, gcsafe.}>"
line: 23
"""
# Fake ScgiState objects, from now-deprecated scgi module
type
ScgiState* = object of RootObj ## SCGI state object
AsyncScgiState* = object of RootObj ## SCGI state object
#bug #442
import asyncnet, 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)